aboutsummaryrefslogtreecommitdiffstats
path: root/vc
diff options
context:
space:
mode:
authorvulcandth <vulcandth@gmail.com>2024-12-27 12:10:20 -0600
committerGitHub <noreply@github.com>2024-12-27 13:10:20 -0500
commit5336950d5fac3ca504b8342e6c9a2d4760ab1f79 (patch)
tree70e0bf5be406046659c97b652272848d0eebccef /vc
parentDon't pass redundant label names to `table_width` and `list_start` (#125) (diff)
downloadpokeyellow-5336950d5fac3ca504b8342e6c9a2d4760ab1f79.tar.gz
pokeyellow-5336950d5fac3ca504b8342e6c9a2d4760ab1f79.tar.xz
pokeyellow-5336950d5fac3ca504b8342e6c9a2d4760ab1f79.zip
Use exported constants for VC patch (#124)
Diffstat (limited to 'vc')
-rw-r--r--vc/pokeyellow.constants.asm66
-rw-r--r--vc/pokeyellow.patch.template42
2 files changed, 51 insertions, 57 deletions
diff --git a/vc/pokeyellow.constants.asm b/vc/pokeyellow.constants.asm
index acd50717..ef8be0fd 100644
--- a/vc/pokeyellow.constants.asm
+++ b/vc/pokeyellow.constants.asm
@@ -1,59 +1,53 @@
; These are all the asm constants needed to make the yellow_vc patch.
-MACRO vc_const
- DEF x = \1
- PRINTLN "{02x:x} \1" ; same format as rgblink's .sym file
-ENDM
-
; [FPA 001 Begin]
- vc_const "M"
- vc_const "E"
- vc_const "G"
- vc_const "A"
- vc_const "P"
- vc_const "X"
- vc_const "L"
- vc_const "S"
- vc_const "F"
- vc_const MEGA_PUNCH
+EXPORT DEF M_CHAR EQU "M"
+EXPORT DEF E_CHAR EQU "E"
+EXPORT DEF G_CHAR EQU "G"
+EXPORT DEF A_CHAR EQU "A"
+EXPORT DEF P_CHAR EQU "P"
+EXPORT DEF X_CHAR EQU "X"
+EXPORT DEF L_CHAR EQU "L"
+EXPORT DEF S_CHAR EQU "S"
+EXPORT DEF F_CHAR EQU "F"
+EXPORT MEGA_PUNCH
; [FPA 002 Begin]
- vc_const "U"
- vc_const "I"
- vc_const GUILLOTINE
+EXPORT DEF U_CHAR EQU "U"
+EXPORT DEF I_CHAR EQU "I"
+EXPORT GUILLOTINE
; [FPA 003 Begin]
- vc_const "K"
- vc_const MEGA_KICK
+EXPORT DEF K_CHAR EQU "K"
+EXPORT MEGA_KICK
; [FPA 004 Begin]
- vc_const "B"
- vc_const "Z"
- vc_const BLIZZARD
+EXPORT DEF B_CHAR EQU "B"
+EXPORT DEF Z_CHAR EQU "Z"
+EXPORT BLIZZARD
; [FPA 005 Begin]
- vc_const BUBBLEBEAM
+EXPORT BUBBLEBEAM
; [FPA 006 Begin]
- vc_const "H"
- vc_const "Y"
- vc_const HYPER_BEAM
+EXPORT DEF H_CHAR EQU "H"
+EXPORT DEF Y_CHAR EQU "Y"
+EXPORT HYPER_BEAM
; [FPA 007 Begin]
- vc_const "T"
- vc_const "N"
- vc_const THUNDERBOLT
+EXPORT DEF T_CHAR EQU "T"
+EXPORT DEF N_CHAR EQU "N"
+EXPORT THUNDERBOLT
; [FPA 008 Begin]
- vc_const HAZE
+EXPORT HAZE
; [FPA 009 Begin]
- vc_const "R"
- vc_const "F"
- vc_const REFLECT
+EXPORT DEF R_CHAR EQU "R"
+EXPORT REFLECT
; [FPA 010 Begin]
- vc_const SELFDESTRUCT
+EXPORT SELFDESTRUCT
; [FPA 011 Begin]
- vc_const EXPLOSION
+EXPORT EXPLOSION
diff --git a/vc/pokeyellow.patch.template b/vc/pokeyellow.patch.template
index a55f8947..203d34f8 100644
--- a/vc/pokeyellow.patch.template
+++ b/vc/pokeyellow.patch.template
@@ -302,7 +302,7 @@ MotionBlur0 = 11
ConditionType = 11
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wStringBuffer+5 wAnimationID 00 wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID 00 wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == == || == == == == == || == == == == == }
-ConditionValueC = {dws_ "M" "E" "G" "A" "P" MEGA_PUNCH 00 "E" "X" "P" "L" MEGA_PUNCH 00 "S" "E" "L" "F" MEGA_PUNCH }
+ConditionValueC = {dws_ M_CHAR E_CHAR G_CHAR A_CHAR P_CHAR MEGA_PUNCH 00 E_CHAR X_CHAR P_CHAR L_CHAR MEGA_PUNCH 00 S_CHAR E_CHAR L_CHAR F_CHAR MEGA_PUNCH }
[FPA 001 End@Stop_reducing_move_anim_flashing_Mega_Punch]
Mode = 3
@@ -311,7 +311,7 @@ Address = {hex @}
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wStringBuffer+5 wAnimationID}
ConditionValueB = {dws_ == == == == == == }
-ConditionValueC = {dws_ "M" "E" "G" "A" "P" MEGA_PUNCH }
+ConditionValueC = {dws_ M_CHAR E_CHAR G_CHAR A_CHAR P_CHAR MEGA_PUNCH }
;rsm103725
;Mem Write: pc32 = 0x781c5 addr = 0xd086 value = 0x3
@@ -325,7 +325,7 @@ MotionBlur0 = 7
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "G" "U" "I" "L" GUILLOTINE }
+ConditionValueC = {dws_ G_CHAR U_CHAR I_CHAR L_CHAR GUILLOTINE }
[FPA 002 End@Stop_reducing_move_anim_flashing_Guillotine]
Mode = 3
@@ -334,7 +334,7 @@ Address = {hex @}
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "G" "U" "I" "L" GUILLOTINE }
+ConditionValueC = {dws_ G_CHAR U_CHAR I_CHAR L_CHAR GUILLOTINE }
;rsm142438
@@ -349,7 +349,7 @@ MotionBlur0 = 10
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wStringBuffer+5 wAnimationID}
ConditionValueB = {dws_ == == == == == == }
-ConditionValueC = {dws_ "M" "E" "G" "A" "K" MEGA_KICK }
+ConditionValueC = {dws_ M_CHAR E_CHAR G_CHAR A_CHAR K_CHAR MEGA_KICK }
[FPA 003 End@Stop_reducing_move_anim_flashing_Mega_Kick]
Mode = 3
@@ -358,7 +358,7 @@ Address = {hex @}
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wStringBuffer+5 wAnimationID}
ConditionValueB = {dws_ == == == == == == }
-ConditionValueC = {dws_ "M" "E" "G" "A" "K" MEGA_KICK }
+ConditionValueC = {dws_ M_CHAR E_CHAR G_CHAR A_CHAR K_CHAR MEGA_KICK }
;rsm154217 blizzard
;No131
@@ -371,7 +371,7 @@ MotionBlur0 = 11
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "B" "L" "I" "Z" BLIZZARD }
+ConditionValueC = {dws_ B_CHAR L_CHAR I_CHAR Z_CHAR BLIZZARD }
[FPA 004 End@Stop_reducing_move_anim_flashing_Blizzard]
Mode = 3
@@ -380,7 +380,7 @@ Address = {hex @}
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "B" "L" "I" "Z" BLIZZARD }
+ConditionValueC = {dws_ B_CHAR L_CHAR I_CHAR Z_CHAR BLIZZARD }
@@ -395,7 +395,7 @@ MotionBlur0 = 15
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "B" "U" "B" "B" BUBBLEBEAM }
+ConditionValueC = {dws_ B_CHAR U_CHAR B_CHAR B_CHAR BUBBLEBEAM }
[FPA 005 End@Stop_reducing_move_anim_flashing_Bubblebeam]
Mode = 3
@@ -404,7 +404,7 @@ Address = {hex @}
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "B" "U" "B" "B" BUBBLEBEAM }
+ConditionValueC = {dws_ B_CHAR U_CHAR B_CHAR B_CHAR BUBBLEBEAM }
;Mem Write: pc32 = 0xc2 addr = 0xcfd1 value = 0x3f
;Pallte Write: pc32 =00078e79 00000048 e4
@@ -418,7 +418,7 @@ MotionBlur0 = 6
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wAnimationID}
ConditionValueB = {dws_ == == == == }
-ConditionValueC = {dws_ "H" "Y" "P" HYPER_BEAM }
+ConditionValueC = {dws_ H_CHAR Y_CHAR P_CHAR HYPER_BEAM }
;rsm112921 thunderbolt
;15 -- 13
@@ -432,7 +432,7 @@ MotionBlur0 = 13
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "T" "H" "U" "N" THUNDERBOLT }
+ConditionValueC = {dws_ T_CHAR H_CHAR U_CHAR N_CHAR THUNDERBOLT }
[FPA 007 End@Stop_reducing_move_anim_flashing_Thunderbolt]
Mode = 3
@@ -441,7 +441,7 @@ Address = {hex @}
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "T" "H" "U" "N" THUNDERBOLT }
+ConditionValueC = {dws_ T_CHAR H_CHAR U_CHAR N_CHAR THUNDERBOLT }
;
;rsm130806 haze
;No40 haze
@@ -454,7 +454,7 @@ MotionBlur0 = 28
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "H" "A" "Z" "E" HAZE }
+ConditionValueC = {dws_ H_CHAR A_CHAR Z_CHAR E_CHAR HAZE }
[FPA 008 End@Stop_reducing_move_anim_flashing_Haze_Hyper_Beam]
Mode = 3
@@ -463,7 +463,7 @@ Address = {hex @}
ConditionType = 11
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID 00 wStringBuffer wStringBuffer+1 wStringBuffer+2 wAnimationID}
ConditionValueB = {dws_ == == == == == || == == == == }
-ConditionValueC = {dws_ "H" "A" "Z" "E" HAZE 00 "H" "Y" "P" HYPER_BEAM }
+ConditionValueC = {dws_ H_CHAR A_CHAR Z_CHAR E_CHAR HAZE 00 H_CHAR Y_CHAR P_CHAR HYPER_BEAM }
;rsm131656 reflect
@@ -477,7 +477,7 @@ MotionBlur0 = 6
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "R" "E" "F" "L" REFLECT }
+ConditionValueC = {dws_ R_CHAR E_CHAR F_CHAR L_CHAR REFLECT }
[FPA 009 End@Stop_reducing_move_anim_flashing_Reflect]
Mode = 3
@@ -486,7 +486,7 @@ Address = {hex @}
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "R" "E" "F" "L" REFLECT }
+ConditionValueC = {dws_ R_CHAR E_CHAR F_CHAR L_CHAR REFLECT }
;rsm132935 selfdestruct
;No56
@@ -499,7 +499,7 @@ MotionBlur0 = 11
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "S" "E" "L" "F" SELFDESTRUCT}
+ConditionValueC = {dws_ S_CHAR E_CHAR L_CHAR F_CHAR SELFDESTRUCT}
[FPA 010 End@Stop_reducing_move_anim_flashing_Self_Destruct]
Mode = 3
@@ -508,7 +508,7 @@ Address = {hex @}
ConditionType = 11
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID 00 wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == || == == == == == }
-ConditionValueC = {dws_ "S" "E" "L" "F" MEGA_PUNCH 00 "S" "E" "L" "F" SELFDESTRUCT}
+ConditionValueC = {dws_ S_CHAR E_CHAR L_CHAR F_CHAR MEGA_PUNCH 00 S_CHAR E_CHAR L_CHAR F_CHAR SELFDESTRUCT}
;rsm013740 explosion
;No76
@@ -521,7 +521,7 @@ MotionBlur0 = 11
ConditionType = 0
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == }
-ConditionValueC = {dws_ "E" "X" "P" "L" EXPLOSION }
+ConditionValueC = {dws_ E_CHAR X_CHAR P_CHAR L_CHAR EXPLOSION }
[FPA 011 End@Stop_reducing_move_anim_flashing_Explosion]
Mode = 3
@@ -530,4 +530,4 @@ Address = {hex @}
ConditionType = 11
ConditionValueA = {dws_ wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID 00 wStringBuffer wStringBuffer+1 wStringBuffer+2 wStringBuffer+3 wAnimationID}
ConditionValueB = {dws_ == == == == == || == == == == == }
-ConditionValueC = {dws_ "E" "X" "P" "L" MEGA_PUNCH 00 "E" "X" "P" "L" EXPLOSION } \ No newline at end of file
+ConditionValueC = {dws_ E_CHAR X_CHAR P_CHAR L_CHAR MEGA_PUNCH 00 E_CHAR X_CHAR P_CHAR L_CHAR EXPLOSION } \ No newline at end of file