Advertisement
fishguy6564

[MKW] Automatic Flatten Toggle for Rogamer

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