mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
This is an immediate fix for #492, although #342 is needed to implement the desired functionality.
24 lines
365 B
NASM
24 lines
365 B
NASM
SECTION "test", ROM0 ; Important: do not purge this!
|
|
|
|
dw ref
|
|
PURGE ref
|
|
|
|
OK:
|
|
PURGE OK
|
|
|
|
dw NotOK
|
|
NotOK:
|
|
PURGE NotOK
|
|
|
|
EvenLessOK:
|
|
dw EvenLessOK
|
|
PURGE EvenLessOK
|
|
|
|
SECTION "fixed", ROM0[0]
|
|
|
|
Maybe:
|
|
dw Maybe
|
|
; This is currently fine because the expression above is fully evaluated
|
|
; above, so it's fine as of now... but changing it might make sense
|
|
PURGE Maybe
|