diff options
author | yenatch <yenatch@gmail.com> | 2014-09-17 21:15:11 -0700 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-09-17 21:15:11 -0700 |
commit | d59dfadf66926ea0c7b5f8bbeaa9b83ee7bb3cb5 (patch) | |
tree | 6db302a1425e7b7301977c9445ab977ae7681cb6 /macros.asm | |
parent | 3de9d14d3e1ed14b880c0064a6141d9d9ca9b828 (diff) |
Add macros for text predefs.
Diffstat (limited to 'macros.asm')
-rw-r--r-- | macros.asm | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 |