mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 12:02:08 +00:00
Let RGBASM write JR offsets in floating sections
This requires some special-casing for `jr @` because the `jr` opcode has already been emitted, but not the operand, so PC points to the middle. Moved the RGBLINK test to RGBASM's folder, and created a new RGBLINK test.
This commit is contained in:
7
test/asm/jr-@.asm
Normal file
7
test/asm/jr-@.asm
Normal 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 @
|
||||
Reference in New Issue
Block a user