Add test for jr @

Fun fact: current build *fails* this test!
This commit is contained in:
ISSOtm
2020-01-26 21:28:14 +01:00
parent ea52e45335
commit b42a04c24e
3 changed files with 8 additions and 0 deletions

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

@@ -0,0 +1,7 @@
SECTION "fixed", ROM0[0]
jr @
; 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
jr @

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

1
test/link/jr-@.out.bin Normal file
View File

@@ -0,0 +1 @@
<18><18>