mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-03 02:35:39 +00:00
14 lines
382 B
NASM
14 lines
382 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
|
|
SECTION "floating", ROM0
|
|
jr @
|
|
|
|
; This should thwart any attempts by RGBASM to compute the offset by itself.
|
|
jr 1 + @ - 1
|
|
|
|
; We rely on this landing at address $0002, which isn't *guaranteed*...
|
|
assert STARTOF("floating") == 2
|