Advertisement
fishguy6564

[MKW] Store Player Index

Aug 20th, 2019
1,006
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Code Description: This will store your player index in a location in memory (0x80001504) that can be easily be accessed by other codes
  2.  
  3. Instructions start at: 0x8052BA08:  9BBF0B84    stb r29,2948(r31)
  4. code:
  5.     lis     r22, 0x8000
  6.     ori     r22, r22, 0x1500    ;r22 now contains 0x80001500
  7.     stw     r29,4(r22)          ;We will store our player index at 0x80001504 so it can be easily accessed by any code that needs it
  8.     stb     r29,2948(r31)       ;Original instruction so nothing breaks
  9.  
  10. Finished product:
  11. Store Player Index -Fishguy6564- [NTSC-U]
  12. C252BA08 00000003
  13. 3EC08000 62D61500
  14. 93B60004 9BBF0B84
  15. 60000000 00000000
  16.  
  17. Store Player Index -Fishguy6564- [PAL]
  18. C2530550 00000003
  19. 3EC08000 62D61500
  20. 93B60004 9BBF0B84
  21. 60000000 00000000
  22.  
  23. Current available regions:
  24. NTSC-U:
  25. NTSC-J: X
  26. NTSC-K: X
  27. PAL: ✓ ported by D3A01000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement