Mario Kart Wii Gecko Codes, Cheats, & Hacks
Store Player Index/Slot [Fishguy] - Printable Version

+- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com)
+-- Forum: Cheat Codes (https://mariokartwii.com/forumdisplay.php?fid=51)
+--- Forum: Online Non-Item (https://mariokartwii.com/forumdisplay.php?fid=52)
+--- Thread: Store Player Index/Slot [Fishguy] (/showthread.php?tid=1511)



Store Player Index/Slot [Fishguy] - Vega - 03-31-2020

Store Player Index/Slot [Fishguy]

This code stores your index/slot byte value of the Online session to 8000ZZZZ in regards to the exception vectors. Adjust ZZZZ accordingly for use with other ASM codes.

NTSC-U
C252BA08 00000002
9BBF0B84 3EC08000
9BB6ZZZZ 00000000

PAL
C2530550 00000002
9BBF0B84 3EC08000
9BB6ZZZZ 00000000

NTSC-J
C252FED0 00000002
9BBF0B84 3EC08000
9BB6ZZZZ 00000000

NTSC-K
C251E5A8 00000002
9BBF0B84 3EC08000
9BB6ZZZZ 00000000

Source:
#Address Ports
#8052BA08 = NTSC-U
#80530550 = PAL
#8052FED0 = NTSC-J
#8051E5A8 = NTSC-K

stb r29, 0x0B84 (r31) #Default Instruction
lis r22, 0x8000 #r22 safe
stb r29, 0xZZZZ (r22) #Fill in ZZZZ before compiling

Code creator: Fishguy