summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
Diffstat (limited to 'macros.asm')
-rw-r--r--macros.asm6
1 files changed, 5 insertions, 1 deletions
diff --git a/macros.asm b/macros.asm
index 76951248..ee062956 100644
--- a/macros.asm
+++ b/macros.asm
@@ -281,12 +281,16 @@ predef_const: MACRO
const \1Predef
ENDM
+tx_pre_const: MACRO
+ const \1_id
+ ENDM
+
add_tx_pre: MACRO
\1_id:: dw \1
ENDM
tx_pre_id: MACRO
- ld a, (\1_id - TextPredefs) / 2 + 1
+ ld a, \1_id ; - TextPredefs) / 2 + 1
ENDM
tx_pre: MACRO