From d59dfadf66926ea0c7b5f8bbeaa9b83ee7bb3cb5 Mon Sep 17 00:00:00 2001 From: yenatch Date: Wed, 17 Sep 2014 21:15:11 -0700 Subject: Add macros for text predefs. --- macros.asm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'macros.asm') diff --git a/macros.asm b/macros.asm index ca2dc82d..f219d25c 100644 --- a/macros.asm +++ b/macros.asm @@ -203,6 +203,24 @@ predef_jump: MACRO ENDM +add_tx_pre: MACRO +\1_id:: dw \1 +ENDM + +tx_pre_id: MACRO + ld a, (\1_id - TextPredefs) / 2 +ENDM + +tx_pre: MACRO + tx_pre_id \1 + call PrintPredefTextID +ENDM + +tx_pre_jump: MACRO + tx_pre_id \1 + jp PrintPredefTextID +ENDM + ;1_channel EQU $00 ;2_channels EQU $40 -- cgit v1.3.1-sl0p