Lfs f0, 0(r4) #ASM Load speed modifier value into f0 Stw r12, 0(r4) #ASM Store speed modifier value at address in r4, which is to be loaded into f0 Ori r12, r12, 0x1480 #ASM Load lower half word of max speed modifier value into r12 Lis r12, 0x40F8 #ASM Load upper half word of max speed modifier value into r12 Ori r11, r11, 0x994C #ASM Load lower half word of address max speed value is to be loaded fromĬmpw r4, r11 #ASM Check to see if that address is being held in r4. Lis r11, 0x8066 #ASM Load upper half word of address max speed value is to be loaded from Lhz r11, 0x54BA(r12) #ASM Load r11 with value at button activator addressĬmpwi r11, 0x4000 #ASM Check to see if the C button is pressed. Lis r12, 0x8062 #ASM Load upper half word of button activator address Once I focused on the load portion (and changed the hook type to K Pad Read), the code worked flawlessly on the Wii. ***I was basing all my codes that worked in Dolphin, but not on the Wii, on the store portion of this routine. Insert address 0x80037858 (also showing store code directly following): Speed Boost x4/Walk Through Walls (Press C) Ġx806254BA Button activator half-word AddressĠx8066994C Max Speed value loaded from this address on the stack (r4)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |