2022-09-12 13:15:44 +00:00
|
|
|
; Virtual Console macros
|
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO vc_hook
|
|
|
|
if DEF(_CRYSTAL11_VC)
|
|
|
|
.VC_\1::
|
|
|
|
endc
|
2022-03-12 23:34:04 +00:00
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO vc_patch
|
|
|
|
if DEF(_CRYSTAL11_VC)
|
|
|
|
assert !DEF(CURRENT_VC_PATCH), "Already started a vc_patch"
|
|
|
|
DEF CURRENT_VC_PATCH EQUS "\1"
|
|
|
|
.VC_{CURRENT_VC_PATCH}::
|
|
|
|
endc
|
2022-03-12 23:34:04 +00:00
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO vc_patch_end
|
|
|
|
if DEF(_CRYSTAL11_VC)
|
|
|
|
assert DEF(CURRENT_VC_PATCH), "No vc_patch started"
|
|
|
|
.VC_{CURRENT_VC_PATCH}_End::
|
|
|
|
PURGE CURRENT_VC_PATCH
|
|
|
|
endc
|
2022-03-12 23:34:04 +00:00
|
|
|
ENDM
|
|
|
|
|
2022-06-06 21:25:42 +00:00
|
|
|
MACRO vc_assert
|
|
|
|
if DEF(_CRYSTAL11_VC)
|
|
|
|
assert \#
|
|
|
|
endc
|
2022-03-12 23:34:04 +00:00
|
|
|
ENDM
|