11-20-2020, 01:00 PM
(This post was last modified: 11-20-2020, 01:25 PM by CLF78.
Edit Reason: Updated credits
)
This code multiplies the Mega Mushroom size value loaded from KartParam.bin. Note: Others online will not see the effect.
NTSC-U
C258B904 00000003
C0040184 3CA0XXXX
90A30184 C0230184
EC010032 00000000
PAL
C2592128 00000003
C0040184 3CA0XXXX
90A30184 C0230184
EC010032 00000000
NTSC-J
C2591AA8 00000003
C0040184 3CA0XXXX
90A30184 C0230184
EC010032 00000000
NTSC-K
C2580180 00000003
C0040184 3CA0XXXX
90A30184 C0230184
EC010032 00000000
XXXX = Left part of the float multiplier (for example, 1.5 is 0x3FC0)
Source:
Code created by: CLF78
Code contributors: Seeky (address founder)
NTSC-U
C258B904 00000003
C0040184 3CA0XXXX
90A30184 C0230184
EC010032 00000000
PAL
C2592128 00000003
C0040184 3CA0XXXX
90A30184 C0230184
EC010032 00000000
NTSC-J
C2591AA8 00000003
C0040184 3CA0XXXX
90A30184 C0230184
EC010032 00000000
NTSC-K
C2580180 00000003
C0040184 3CA0XXXX
90A30184 C0230184
EC010032 00000000
XXXX = Left part of the float multiplier (for example, 1.5 is 0x3FC0)
Source:
Code:
# Inject @ 80592128 PAL, 8058B904 NTSC-U, 80591AA8 NTSC-J, 80580180 NTSC-K
# Original instruction
lfs f0, 0x184(r4)
# Load the left part of our custom float in f1
lis r5, 0xXXXX
stw r5, 0x184(r3)
lfs f1, 0x184(r3)
# Multiply
fmuls f0, f1, f0
Code created by: CLF78
Code contributors: Seeky (address founder)