Skip to content

Commit

Permalink
Allow vc_const to work with charmap characters (necessary for pokeg…
Browse files Browse the repository at this point in the history
…old)
  • Loading branch information
Rangi42 committed Mar 14, 2022
1 parent a4bc0ab commit 4d102dc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
30 changes: 15 additions & 15 deletions macros/vc.asm
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
vc_hook: MACRO
if DEF(_CRYSTAL11_VC)
.VC_\1::
endc
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"
if DEF(_CRYSTAL11_VC)
assert !DEF(CURRENT_VC_PATCH), "Already started a vc_patch"
CURRENT_VC_PATCH EQUS "\1"
.VC_{CURRENT_VC_PATCH}::
endc
.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
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
if DEF(_CRYSTAL11_VC)
assert \#
endc
ENDM
3 changes: 2 additions & 1 deletion vc/pokecrystal11.constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ INCLUDE "constants.asm"
; These are all the asm constants needed to make the crystal11_vc patch.

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

; [fight begin]
Expand Down

0 comments on commit 4d102dc

Please sign in to comment.