Today, 01:38 AM
(Yesterday, 06:03 PM)Vega Wrote:(02-21-2025, 09:41 AM)Womb Wrote: 5 months later
Can it be modified like this?
https://mariokartwii.com/showthread.php?tid=1893&page=2
from Reply #14
Yes, I jimmy'd this up really quick.
Untested, might not work.
PAL
06001500 0000000C
LLNNPPQQ RRSSTTUU
VVXXYYZZ 00000000
C252F538 00000004
801E0018 3D608000
616B1500 7D6BD0AE
2C0B0000 41820000
38000001 00000000
C272625C 00000002
5460063E 7C0C0378
60000000 00000000
C272627C 00000002
3D608000 616B1500
7C6B60AE 00000000
C2590664 00000003
81830000 818C0000
898C0010 80630000
60000000 00000000
C2590670 00000002
3D608000 616B1500
7C6B60AE 00000000
String Wring Source:
Code:#Write Truth Table at 0x80001500
#0 = isCPU false
#1 = isCPU true
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
First ASM Source:
Code:#PAL 8052F538
#r26 = Slot code is hooked on
#r0 (after OG instruction) is 0 for Human, 1 for CPU, 3 for CPU???
#OG Instruction. The reason im leaving the OG instruction in instead of just directly loading truth table bool into r0 is because for possiblity of this 3 value being loaded. No idea what its for, let's not chance it
lwz r0, 0x0018 (r30)
#Set Truth Table addr
lis r11, 0x8000
ori r11, r11, 0x1500
#Use r26 slot to grab Truth Table bool
lbzx r11, r11, r26
cmpwi r11, 0
beq- end #if false allow OG instruction value just incase 3 was loaded
#Set isCPU
li r0, 1
Second ASM Source:
Code:#PAL 8072625C
#Original Instruction is useless because it calls a fuctino to get back a returned byte but it then uses a rlwinm to extract the byte. But we'll keep it cuz r0 needs the result anyway
#Make sure loaded Player/CPU ID is a byte
rlwinm r0, r3, 0, 24, 31
#Save Player/CPU ID in r12
mr r12, r0
Third ASM Source:
Code:#PAL 8072627C
#OG instruction of rlwinm r3, r0, 27, 5, 31 discarded
#Set Truth Table addr
lis r11, 0x8000
ori r11, r11, 0x1500
#Use r12 (slot code is hooked on) to load isCPU value from truth table
lbzx r3, r11, r12
Fourth ASM Source:
Code:#PAL 80590664
#Grab slot code is hooked on
lwz r12, 0 (r3)
lwz r12, 0 (r12)
lbz r12, 0x10 (r12)
#OG Instruction
lwz r3, 0 (r3)
Fifth ASM Source:
Code:#PAL 80590670
#OG Instruction of rlwinm r3, r0, 0, 31, 31 discarded
#Set Turth Table addr
lis r11, 0x8000
ori r11, r11, 0x1500
#Use r12 (slot code is hooked on) to load isCPU value from truth table
lbzx r3, r11, r12
Tested. It crashes after the wiimote warning screen.