Store Player Index/Slot [Fishguy]
#1
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
Reply


Messages In This Thread
Store Player Index/Slot [Fishguy] - by Vega - 03-31-2020, 04:46 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)