summaryrefslogtreecommitdiff
path: root/macros/map.asm
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2015-02-06 16:03:45 -0600
committerBryan Bishop <kanzure@gmail.com>2015-02-06 16:03:45 -0600
commitf8acaf69f05a4086415cf6e156bd8f668a8eadda (patch)
tree8bf5b00570371748e1649d3e1e07a72202abcc8b /macros/map.asm
parent567b576f60866f92eda1660ecd19bf3e6d7519c6 (diff)
parent90891ec69ffae14129589e850e3a73163bc0b02c (diff)
Merge pull request #271 from yenatch/master
incbins
Diffstat (limited to 'macros/map.asm')
-rw-r--r--macros/map.asm26
1 files changed, 26 insertions, 0 deletions
diff --git a/macros/map.asm b/macros/map.asm
index 297646a79..ef62f386f 100644
--- a/macros/map.asm
+++ b/macros/map.asm
@@ -1,3 +1,29 @@
+map: MACRO
+; This is a silly hack to get around an rgbds bug.
+
+; Ideally:
+; db GROUP_\1, MAP_\1
+
+\1\@ EQUS "GROUP_\1"
+\1\@2 EQUS "MAP_\1"
+ db \1\@, \1\@2
+ENDM
+
+roam_map: MACRO
+; A map and an arbitrary number of some more maps.
+
+ map \1
+ db \2
+
+ rept \2
+ map \3
+ shift
+ endr
+
+ db 0
+ENDM
+
+
person_event: macro
db \1 ; sprite
db \2 ; y