Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Please note that this code is for NTSC-U versions of the game only.
- instructions start at: 0x8058E018
- code:
- lis r14, 1 #r14 now contains 0x00010000 which are the bits that correspond to the flattening status
- lwz r15, 32(r3) #Using unused memory location near target to keep the counter
- addi r15, r15, 1 #Increment counter
- cmpwi r15, 60 #Checks to see if counter has reached a certain value
- andc r0, r0, r14 #This clears the bits used to flatten the player
- blt skip #skips writing the flatten status bits if it is less than the defined counter
- li r15, 0 #Resets the counter
- or r0, r0, r14 #ORs the status bits
- skip:
- stw r15, 32(r3) #Stores the counter back into memory
- stw r0,12(r3) #Stores the bit statuses back into memory (original instruction)
- Code:
- C258E018 00000006
- 3DC00001 81E30020
- 39EF0001 2C0F0020
- 7C007078 4180000C
- 39E00000 7C007378
- 91E30020 9003000C
- 60000000 00000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement