pokegold-spaceworld/constants/patch_constants.asm
2018-07-07 15:52:00 +02:00

8 lines
137 B
NASM

HackInterrupt EQU $0000
; Note that a hack call takes 3 bytes.
hack: MACRO
ld a, (Hack\1Entry - HackTable) / 2
rst HackInterrupt
ENDM