mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
28 lines
506 B
NASM
28 lines
506 B
NASM
|
vc_hook: MACRO
|
||
|
if DEF(_CRYSTAL11_VC)
|
||
|
.VC_\1::
|
||
|
endc
|
||
|
ENDM
|
||
|
|
||
|
vc_patch: MACRO
|
||
|
if DEF(_CRYSTAL11_VC)
|
||
|
assert !DEF(CURRENT_VC_PATCH), "Already started a vc_patch"
|
||
|
CURRENT_VC_PATCH EQUS "\1"
|
||
|
.VC_{CURRENT_VC_PATCH}::
|
||
|
endc
|
||
|
ENDM
|
||
|
|
||
|
vc_patch_end: MACRO
|
||
|
if DEF(_CRYSTAL11_VC)
|
||
|
assert DEF(CURRENT_VC_PATCH), "No vc_patch started"
|
||
|
.VC_{CURRENT_VC_PATCH}_End::
|
||
|
PURGE CURRENT_VC_PATCH
|
||
|
endc
|
||
|
ENDM
|
||
|
|
||
|
vc_assert: MACRO
|
||
|
if DEF(_CRYSTAL11_VC)
|
||
|
assert \#
|
||
|
endc
|
||
|
ENDM
|