10-17-2021, 08:13 PM
When loading a course on my wii with this code enabled, the game crashes. However, on dolphin, it runs just fine!
How do i fix that?
Code:
#address = 80590400
lfs f1, 0 (r31)
loc_0x0:
lis r12, 0x8000
ori r12, r12, 0x1D0
lbz r10, 0(r12)
cmpwi r10, 0x1
beq- loc_0x1C
b loc_0x34
loc_0x1C:
.set GRAVITY, 0x40360000
bl float
.long GRAVITY
float:
mflr r11
lfs f10, 0 (r11)
lfs f13, -0x70 (r3)
fmuls f13, f13, f10
lfs f1, 0 (r31)
fadds f1, f1, f13
loc_0x34:
nop
How do i fix that?
Code:
#address = 80590400
lfs f1, 0 (r31)
loc_0x0:
lis r12, 0x8000
ori r12, r12, 0x1D0
lbz r10, 0(r12)
cmpwi r10, 0x1
beq- loc_0x1C
b loc_0x34
loc_0x1C:
.set GRAVITY, 0x40360000
bl float
.long GRAVITY
float:
mflr r11
lfs f10, 0 (r11)
lfs f13, -0x70 (r3)
fmuls f13, f13, f10
lfs f1, 0 (r31)
fadds f1, f1, f13
loc_0x34:
nop