summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2015-03-05 20:24:23 -0800
committerMarcus Huderle <huderlem@gmail.com>2015-03-05 20:24:23 -0800
commitf8580d043fc24f5dec47b262795ad0b763b91cb6 (patch)
treead008a2ad81fa26e2eacd724c416191d87c3247f /macros.asm
parentd5fb679f078058e41ba13b76c5b0268762a952bb (diff)
Added map constants.
Diffstat (limited to 'macros.asm')
-rwxr-xr-xmacros.asm10
1 files changed, 10 insertions, 0 deletions
diff --git a/macros.asm b/macros.asm
index 0b301bc..54a779e 100755
--- a/macros.asm
+++ b/macros.asm
@@ -36,6 +36,16 @@ bigBCD6: MACRO
dn ((\1) / 100000000000) % 10, ((\1) / 10000000000) % 10
ENDM
+; Constant enumeration is useful for mons, maps, etc.
+const_def: MACRO
+const_value = 0
+ENDM
+
+const: MACRO
+\1 EQU const_value
+const_value = const_value + 1
+ENDM
+
;\1 = X
;\2 = Y
;\3 = Reference Background Map (e.g. vBGMap0 or vBGMap1)