Add test for db X, @

It should behave identically to both of these on separate lines
This commit is contained in:
ISSOtm
2020-01-26 21:40:58 +01:00
parent ec6c42e9d6
commit ed06981f57
3 changed files with 7 additions and 0 deletions

7
test/link/db-@.asm Normal file
View File

@@ -0,0 +1,7 @@
SECTION "fixed", ROM0[0]
db 0, @
; We need this section to be floating because RGBASM can know the value of PC
; otherwise, leading to different behavior
; FIXME: we rely on this landing at address 2, which isn't *guaranteed*...
SECTION "floating", ROM0
db 2, @

0
test/link/db-@.out Normal file
View File

BIN
test/link/db-@.out.bin Normal file

Binary file not shown.