Allow vc_const to work with charmap characters (necessary for pokegold)

This commit is contained in:
Rangi 2022-03-13 23:21:27 -04:00
parent a4bc0ab74f
commit 4d102dcb3f
2 changed files with 17 additions and 16 deletions

View File

@ -1,27 +1,27 @@
vc_hook: MACRO vc_hook: MACRO
if DEF(_CRYSTAL11_VC) if DEF(_CRYSTAL11_VC)
.VC_\1:: .VC_\1::
endc endc
ENDM ENDM
vc_patch: MACRO vc_patch: MACRO
if DEF(_CRYSTAL11_VC) if DEF(_CRYSTAL11_VC)
assert !DEF(CURRENT_VC_PATCH), "Already started a vc_patch" assert !DEF(CURRENT_VC_PATCH), "Already started a vc_patch"
CURRENT_VC_PATCH EQUS "\1" CURRENT_VC_PATCH EQUS "\1"
.VC_{CURRENT_VC_PATCH}:: .VC_{CURRENT_VC_PATCH}::
endc endc
ENDM ENDM
vc_patch_end: MACRO vc_patch_end: MACRO
if DEF(_CRYSTAL11_VC) if DEF(_CRYSTAL11_VC)
assert DEF(CURRENT_VC_PATCH), "No vc_patch started" assert DEF(CURRENT_VC_PATCH), "No vc_patch started"
.VC_{CURRENT_VC_PATCH}_End:: .VC_{CURRENT_VC_PATCH}_End::
PURGE CURRENT_VC_PATCH PURGE CURRENT_VC_PATCH
endc endc
ENDM ENDM
vc_assert: MACRO vc_assert: MACRO
if DEF(_CRYSTAL11_VC) if DEF(_CRYSTAL11_VC)
assert \# assert \#
endc endc
ENDM ENDM

View File

@ -3,7 +3,8 @@ INCLUDE "constants.asm"
; These are all the asm constants needed to make the crystal11_vc patch. ; These are all the asm constants needed to make the crystal11_vc patch.
vc_const: MACRO vc_const: MACRO
println "00:{04x:\1} \1" ; same format as rgblink's .sym file x = \1
println "00:{04x:x} \1" ; same format as rgblink's .sym file
ENDM ENDM
; [fight begin] ; [fight begin]