mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-12-24 19:36:48 +13:00
Comments explain the def_warps_to macros
This commit is contained in:
parent
5e1865a7b1
commit
d5db0c3dbf
|
|
@ -51,6 +51,7 @@ ENDM
|
||||||
warp: MACRO
|
warp: MACRO
|
||||||
db \2, \1, \3, \4
|
db \2, \1, \3, \4
|
||||||
_NUM_WARPS = _NUM_WARPS + 1
|
_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_NUM_{d:{_NUM_WARPS}}"
|
||||||
_WARP_TO_NAME EQUS "warp_to \1, \2, _WARP_TO_WIDTH"
|
_WARP_TO_NAME EQUS "warp_to \1, \2, _WARP_TO_WIDTH"
|
||||||
PURGE _WARP_TO_NAME
|
PURGE _WARP_TO_NAME
|
||||||
|
|
@ -75,6 +76,7 @@ ENDM
|
||||||
|
|
||||||
;\1 source map
|
;\1 source map
|
||||||
def_warps_to: MACRO
|
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_WIDTH = \1_WIDTH
|
||||||
_WARP_TO_N = 1
|
_WARP_TO_N = 1
|
||||||
REPT _NUM_WARPS
|
REPT _NUM_WARPS
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue