From 5bca1172ffb910566ccdf97fcd8d6a4c98ade456 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Thu, 19 Mar 2020 23:07:07 +0100 Subject: [PATCH] Fix section continuation when only one bank exists --- src/asm/section.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/asm/section.c b/src/asm/section.c index cfee4726..a498256e 100644 --- a/src/asm/section.c +++ b/src/asm/section.c @@ -117,6 +117,9 @@ static struct Section *getSection(char const *pzName, enum SectionType type, pzName, org, startaddr[type], endaddr(type)); } + if (nbbanks(type) == 1) + bank = bankranges[type][0]; + struct Section *pSect = out_FindSectionByName(pzName); if (pSect) { @@ -137,9 +140,6 @@ static struct Section *getSection(char const *pzName, enum SectionType type, if (pSect->pzName == NULL) fatalerror("Not enough memory for sectionname"); - if (nbbanks(type) == 1) - bank = bankranges[type][0]; - pSect->nType = type; pSect->nPC = 0; pSect->nOrg = org;