summaryrefslogtreecommitdiff
path: root/macros.asm
diff options
context:
space:
mode:
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)