Implement . string constant for the current label scope (#1499)

This commit is contained in:
Sylvie
2024-09-13 15:20:01 -04:00
committed by GitHub
parent bfb96b038d
commit 122ef95d9c
15 changed files with 133 additions and 23 deletions

View File

@@ -11,5 +11,23 @@ REDEF _NARG = 78
DEF _NARG EQUS "hello"
REDEF _NARG EQUS "world"
SECTION "test", ROM0
SECTION "_NARG", ROM0
_NARG:
ENDSECTION
ASSERT !DEF(.)
PURGE .
DEF . EQU 12
REDEF . EQU 34
DEF . = 56
REDEF . = 78
DEF . EQUS "hello"
REDEF . EQUS "world"
SECTION ".", ROM0
.:
ENDSECTION