summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-09-17 21:15:11 -0700
committeryenatch <yenatch@gmail.com>2014-09-17 21:15:11 -0700
commitd59dfadf66926ea0c7b5f8bbeaa9b83ee7bb3cb5 (patch)
tree6db302a1425e7b7301977c9445ab977ae7681cb6 /macros.asm
parent3de9d14d3e1ed14b880c0064a6141d9d9ca9b828 (diff)
Add macros for text predefs.
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