You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Build the Virtual Console patch with make crystal11_vc
(#882)
Fixes #813
This commit is contained in:
27
macros/vc.asm
Normal file
27
macros/vc.asm
Normal file
@@ -0,0 +1,27 @@
|
||||
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
|
Reference in New Issue
Block a user