(11-21-2021, 10:31 PM)Vega Wrote: ASM is far far different that higher level languages. You can't just slap together snippets of code into a source and have it work. While you may get away with that from time to time on higher languages, it's impossible on ASM.yes I take this part without understand all. i have the habit to put the code together and see if is work and at the end remove all the part i don't use and i use a gamecube manette(when i compile with code writer i have a error so i put this and change after in the cheat code). i retry and it's change nothing i go to see in memory something change. and i try to change because if is valid so it's this adresse he see the button ok if is not change so it's not this place
Code:the code:
lis r12, 0x8035
lhz r12, 0x57E2 (r12)
To load current button values from PAL 1st Player wheel/chuck, you need to use 803457E2, not 803557E2
Code:li r0, 0
stb r0, 0x3FF (r12)
blr
What is this for? I see it's from my XYZ Swapper code. This portion of your code literally serves zero purpose. That was why I said at the beginning that you can't just slap random pieces of code together. When writing Assembly, you should be able to account for every instruction in your source, being able to explain why each instruction is present.
Also, your code as whole (if it did work from it appears you want it to do) does nothing. It's just grabbing button statuses and then doing a one frame hit on the A button. Nothing as far as game mechanics is being changed/modified.
Disable the button ok in vs mode
|
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 2 Guest(s)