Itoikenza recently asked me to help him make a code. I think it would be better to share in the forum for everyone to see and learn. I don't have experience with gba in particular, but I will do my best, and anyone else can help as well.
The target: We want a code for sfa3upper that with the select button held down and an attack button pushed, will auto perform a special move. I believe this will be better as a code, as doing a patch would require a lot more work, like writing a new routine.
Checking for the select button will be easy, I believe the GSA v3/4 has a 8-bit if AND codetype that will work quite nicely. We just have to find the location of the button input.
But first, we need to figure out the codes to execute if the select button is held. I'm willing to bet when an attack button is pushed, there is a subroutine that checks previous button presses for special combos. We need to find a way to have this subroutine return true instead of false. To find this subroutine, I think it would be easiest to have a look through the ram while the game is running and pressing buttons to see where the presses are being recorded. From there we can see what reads them after a button is pressed and get the location of our routine.
This is how I found the code for SNES Mortal Kombat one button presses (MK one or two, I don't remember). So the first step is to find how the game is reading button combos.
I'll update this code as we figure it out.
The target: We want a code for sfa3upper that with the select button held down and an attack button pushed, will auto perform a special move. I believe this will be better as a code, as doing a patch would require a lot more work, like writing a new routine.
Checking for the select button will be easy, I believe the GSA v3/4 has a 8-bit if AND codetype that will work quite nicely. We just have to find the location of the button input.
But first, we need to figure out the codes to execute if the select button is held. I'm willing to bet when an attack button is pushed, there is a subroutine that checks previous button presses for special combos. We need to find a way to have this subroutine return true instead of false. To find this subroutine, I think it would be easiest to have a look through the ram while the game is running and pressing buttons to see where the presses are being recorded. From there we can see what reads them after a button is pressed and get the location of our routine.
This is how I found the code for SNES Mortal Kombat one button presses (MK one or two, I don't remember). So the first step is to find how the game is reading button combos.
Code:
38?????? 000000?? // Check if the select button is held (8-bit if AND (single)) 00?????? 000000?? // Trick the combo routine into thinking there was a special button combo (8-bit RAM Write)
Comment