diff options
author | yenatch <yenatch@gmail.com> | 2015-01-20 14:26:16 -0800 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2015-01-20 14:26:16 -0800 |
commit | f036cdf13b0e215cd9a14cc9dba24f821a9679c0 (patch) | |
tree | 2f517ab85b4e173a6d8b47c8d1dfb22a20ff9811 /macros/map.asm | |
parent | 9303752e3fac18a5245870a992a04d11772bed52 (diff) |
Move around some more macros.
Diffstat (limited to 'macros/map.asm')
-rw-r--r-- | macros/map.asm | 26 |
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 |