summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorU-Daniel-PC\Daniel <corrnondacqb@yahoo.com>2015-02-25 09:52:59 -0500
committerU-Daniel-PC\Daniel <corrnondacqb@yahoo.com>2015-02-25 09:55:52 -0500
commit80f8027dff7330a991c043d5e29883b80785787e (patch)
tree9b4378f7d6ef3cd24be80894c6074cdafd462530 /macros.asm
parent8551724d051cd1d103dad1972a5ac1f4cc2d6a4b (diff)
Use text id constants
Diffstat (limited to 'macros.asm')
-rwxr-xr-xmacros.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 757caed..8fbf35c 100755
--- a/macros.asm
+++ b/macros.asm
@@ -30,6 +30,9 @@ ENDM
text: MACRO
dw ((\1 + ($4000 * (BANK(\1) - 1))) - (TextOffsets + ($4000 * (BANK(TextOffsets) - 1)))) & $ffff
db ((\1 + ($4000 * (BANK(\1) - 1))) - (TextOffsets + ($4000 * (BANK(TextOffsets) - 1)))) >> 16
+\1_ EQU const_value
+GLOBAL \1_
+const_value = const_value + 1
ENDM
; notes/instruments