mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
Implement . string constant for the current label scope (#1499)
This commit is contained in:
12
test/asm/label-scope.asm
Normal file
12
test/asm/label-scope.asm
Normal file
@@ -0,0 +1,12 @@
|
||||
ASSERT !DEF(@) && !DEF(.)
|
||||
|
||||
PURGE @, .
|
||||
|
||||
SECTION "test", ROM0[42]
|
||||
Foobar:
|
||||
|
||||
PURGE @, .
|
||||
|
||||
ASSERT DEF(@) && DEF(.) && DEF(Foobar)
|
||||
|
||||
PRINTLN "PC: {#05X:@}; label scope: \"{.}\"; {.}: {#05X:{.}}"
|
||||
Reference in New Issue
Block a user