Mario Kart Wii Gecko Codes, Cheats, & Hacks

Full Version: Miniturbo boost is mushroom boost [Gaberboo]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
PAL
C25830E0 00000006
A95D0148 7FE90734
7C095000 811D0000
81080004 81280008
61290080 91280008
40810008 B3FD0148
70000004 60000000
045830E8 A81D0110
04583100 B3FD0110
04583108 60000004

NTSC-U
C257C87C 00000006
A95D0148 7FE90734
7C095000 811D0000
81080004 81280008
61290080 91280008
40810008 B3FD0148
70000004 60000000
0457C884 A81D0110
0457C89C B3FD0110
0457C8A4 60000004

NTSC-J
C2582A60 00000006
A95D0148 7FE90734
7C095000 811D0000
81080004 81280008
61290080 91280008
40810008 B3FD0148
70000004 60000000
04582A68 A81D0110
04582A80 B3FD0110
04582A88 60000004

NTSC-K
C2571138 00000006
A95D0148 7FE90734
7C095000 811D0000
81080004 81280008
61290080 91280008
40810008 B3FD0148
70000004 60000000
04571140 A81D0110
04571158 B3FD0110
04571160 60000004

Intended to be assembled as a raw
Code:
.set region, ''

.if (region == 'P')
    .set KartMoveReleaseMt, 0x80582f9c
.elseif (region == 'E')
    .set KartMoveReleaseMt, 0x8057c738
.elseif (region == 'J')
    .set KartMoveReleaseMt, 0x8058291c
.elseif (region == 'K')
    .set KartMoveReleaseMt, 0x80570ff4
.else
    .err
.endif
.long 0xC2000000+KartMoveReleaseMt-0x80000000+0x144
.long (realend-start) >> 3
start:
lha       r10, 0x148 (r29)
extsh     r9,r31
cmpw      r9,r10
lwz       r8, 0x0 (r29)
lwz       r8, 0x4 (r8)
lwz       r9, 0x8 (r8)
ori       r9, r9, 0x80 # bit must be set for offroad immunity
stw       r9, 0x8 (r8)
ble       end
sth       r31, 0x148 (r29)
end:
andi.     r0, r0, 0x4 # beq after hook
.balign   8
realend:

.long 0x04000000+KartMoveReleaseMt-0x80000000+0x14C
lha       r0, 0x110 (r29)

.long 0x04000000+KartMoveReleaseMt-0x80000000+0x164
sth       r31, 0x110 (r29)

.long 0x04000000+KartMoveReleaseMt-0x80000000+0x16c
ori       r0, r0, 0x4
The mkw-sp ghidra is super helpful
Nice work.