summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm18
1 files changed, 18 insertions, 0 deletions
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