ref: deb91f679dfdf06811badd5f3a28ef44549bf170
parent: fb5e768142f85cfef6591627b217d49bb1af903b
author: ISSOtm <eldredhabert0@gmail.com>
date: Fri Mar 20 13:59:47 EDT 2020
Reset symbol scope on every section change
--- a/src/asm/section.c
+++ b/src/asm/section.c
@@ -181,6 +181,8 @@
pPCSymbol->pSection = pSect;
pPCSymbol->isConstant = pSect && pSect->nOrg != -1;
+
+ sym_SetCurrentSymbolScope(NULL);
}
/*
@@ -224,7 +226,6 @@
if (!currentLoadSection)
yyerror("Found `ENDL` outside of a `LOAD` block");
currentLoadSection = NULL;
- sym_SetCurrentSymbolScope(NULL);
nPC = pCurrentSection->nPC;
setSection(pCurrentSection);