summaryrefslogtreecommitdiff
path: root/macros/scripts/maps.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-08-18 08:36:17 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-08-18 10:42:23 -0400
commitd5db0c3dbf78a957e8f10ad410789c4256d64f74 (patch)
treeddda1118461d6151597a4bf9eefcb0eddc835da1 /macros/scripts/maps.asm
parent5e1865a7b160696de4f82f7d172c038f3b4726e0 (diff)
Comments explain the def_warps_to macros
Diffstat (limited to 'macros/scripts/maps.asm')
-rw-r--r--macros/scripts/maps.asm2
1 files changed, 2 insertions, 0 deletions
diff --git a/macros/scripts/maps.asm b/macros/scripts/maps.asm
index a85d8fe6..2032629b 100644
--- a/macros/scripts/maps.asm
+++ b/macros/scripts/maps.asm
@@ -51,6 +51,7 @@ ENDM
warp: MACRO
db \2, \1, \3, \4
_NUM_WARPS = _NUM_WARPS + 1
+; the Nth warp defines a corresponding Nth warp_to, stored in _WARP_TO_NUM_<N>
_WARP_TO_NAME EQUS "_WARP_TO_NUM_{d:{_NUM_WARPS}}"
_WARP_TO_NAME EQUS "warp_to \1, \2, _WARP_TO_WIDTH"
PURGE _WARP_TO_NAME
@@ -75,6 +76,7 @@ ENDM
;\1 source map
def_warps_to: MACRO
+; output and purge each _WARP_TO_NUM_<N> warp_to, from N=1 to _NUM_WARPS
_WARP_TO_WIDTH = \1_WIDTH
_WARP_TO_N = 1
REPT _NUM_WARPS