pokered/macros/predef.asm
vulcandth 6b5be9129c
RGBDS syntax updates (#358)
New MACRO and DEF syntax
2022-06-06 17:25:31 -04:00

32 lines
388 B
NASM

MACRO predef_id
ld a, (\1Predef - PredefPointers) / 3
ENDM
MACRO predef
predef_id \1
call Predef
ENDM
MACRO predef_jump
predef_id \1
jp Predef
ENDM
MACRO tx_pre_id
ld a, (\1_id - TextPredefs) / 2 + 1
ENDM
MACRO tx_pre
tx_pre_id \1
call PrintPredefTextID
ENDM
MACRO tx_pre_jump
tx_pre_id \1
jp PrintPredefTextID
ENDM
MACRO db_tx_pre
db (\1_id - TextPredefs) / 2 + 1
ENDM