mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
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.
8 lines
258 B
NASM
8 lines
258 B
NASM
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 @
|