Files
rgbds/test/asm/rst.asm
Rangi 9923fa3eee Fix expansions that start from the end of another expansion (#839)
Do not free an expansion until its offset is *past* its size.
This means potentially freeing a nested stack of expansions
all at once.

Fixes #696
2021-04-17 13:14:40 -04:00

32 lines
431 B
NASM

SECTION "calls", ROM0[0]
; The values are not known at this point, forcing the assembler to emit an
; expression
rst rst00
rst rst08
rst rst10
rst rst18
rst rst20
rst rst28
rst rst30
rst rst38
rst rst2A
defRST: MACRO
SECTION "rst\1", ROM0[$\1]
rst\1:
ENDM
defRST 00
defRST 08
defRST 10
defRST 18
defRST 20
defRST 28
defRST 30
defRST 38
defRST 2A ; Define a nonsensical RST, because RGBASM cannot catch it