Force Instant Respawn [Anarion]
Press button activator(s) to initiate a quick respawn (respawn starts at lakitu dropping you off).
There are two configs to this code. First config effects all players (offline). Second config allows you who to choose for the code to effect via the W value (offline).
W values:
0 = P1
1 = P2/CPU1
2 = P3/CPU2
3 = P4/CPU3
4 = CPU4
... ...
B = CPU11
1st config~
NTSC-U
0458ECD8 80B40004
2834XXXX YYYYZZZZ
0458ECD8 38A00010
E0000000 80008000
PAL
045954FC 80B40004
2834XXXX YYYYZZZZ
045954FC 38A00010
E0000000 80008000
NTSC-J
04594E7C 80B40004
2834XXXX YYYYZZZZ
04594E7C 38A00010
E0000000 80008000
NTSC-K
04583554 80B40004
2833XXXX YYYYZZZZ
04583554 38A00010
E0000000 80008000
2nd config (W = slot)~
NTSC-U
0458ECD8 80B40004
2834XXXX YYYYZZZZ
C258ECD8 00000004
819A0000 818C0000
898C0010 2C0C000W
80B40004 40A20008
38A00010 00000000
E0000000 80008000
PAL
045954FC 80B40004
2834XXXX YYYYZZZZ
C25954FC 00000004
819A0000 818C0000
898C0010 2C0C000W
80B40004 40A20008
38A00010 00000000
E0000000 80008000
NTSC-J
04594E7C 80B40004
2834XXXX YYYYZZZZ
C2594E7C 00000004
819A0000 818C0000
898C0010 2C0C000W
80B40004 40A20008
38A00010 00000000
E0000000 80008000
NTSC-K
04583554 80B40004
2833XXXX YYYYZZZZ
C2583554 00000004
819A0000 818C0000
898C0010 2C0C000W
80B40004 40A20008
38A00010 00000000
E0000000 80008000
Code creator: Anarion
Code credits: Vega (added slot selectability)
Press button activator(s) to initiate a quick respawn (respawn starts at lakitu dropping you off).
There are two configs to this code. First config effects all players (offline). Second config allows you who to choose for the code to effect via the W value (offline).
W values:
0 = P1
1 = P2/CPU1
2 = P3/CPU2
3 = P4/CPU3
4 = CPU4
... ...
B = CPU11
1st config~
NTSC-U
0458ECD8 80B40004
2834XXXX YYYYZZZZ
0458ECD8 38A00010
E0000000 80008000
PAL
045954FC 80B40004
2834XXXX YYYYZZZZ
045954FC 38A00010
E0000000 80008000
NTSC-J
04594E7C 80B40004
2834XXXX YYYYZZZZ
04594E7C 38A00010
E0000000 80008000
NTSC-K
04583554 80B40004
2833XXXX YYYYZZZZ
04583554 38A00010
E0000000 80008000
2nd config (W = slot)~
NTSC-U
0458ECD8 80B40004
2834XXXX YYYYZZZZ
C258ECD8 00000004
819A0000 818C0000
898C0010 2C0C000W
80B40004 40A20008
38A00010 00000000
E0000000 80008000
PAL
045954FC 80B40004
2834XXXX YYYYZZZZ
C25954FC 00000004
819A0000 818C0000
898C0010 2C0C000W
80B40004 40A20008
38A00010 00000000
E0000000 80008000
NTSC-J
04594E7C 80B40004
2834XXXX YYYYZZZZ
C2594E7C 00000004
819A0000 818C0000
898C0010 2C0C000W
80B40004 40A20008
38A00010 00000000
E0000000 80008000
NTSC-K
04583554 80B40004
2833XXXX YYYYZZZZ
C2583554 00000004
819A0000 818C0000
898C0010 2C0C000W
80B40004 40A20008
38A00010 00000000
E0000000 80008000
Code creator: Anarion
Code credits: Vega (added slot selectability)
Code:
#START ASSEMBLY
#C2 Hook Addresses
#NTSC-U 8058ECD8
#PAL 805954FC
#NTSC-J 80594E7C
#NTSC-K 80583554
#Grab Slot Code is currently Hooked on
lwz r12, 0 (r26)
lwz r12, 0 (r12)
lbz r12, 0x10 (r12)
cmpwi r12, 0 #Slot 0 used for assembling, adjust this to what you want
lwz r5, 0x0004 (r20) #OG Instruction
bne+ skip_code
#Slot matched, execute code
li r5, 0x10 #NOTE from Vega: probably incorrect value, simply carrying over what Anarion uses. This field is defnitely a bit field, and only the relative bit(s) (whatever they are) should be flipped high/low as changing unrelated bits may cause unknown effects/bugs
#Branch label
skip_code: