Force Shock Damage [1superchip]
#4
All fixed and updated.

Ye, for GCN PAL the 3C608034 needs to be changed to 3C608035. Can be solved by writing the second half of the address with an ori and then doing a lhz with a null offset. I also noticed the code (1st ASM) is ending in a nop even though its a C0 ASM.

Here's a quick fix
#decompilation using yyyy value of 0x8000, zzzz value of 0x0880 and p value of 1

lis r3,-32445
lwz r3,4(r3)
cmpwi r3,0
beq+ 0x0040
lis r3,-32716
#Plug in instruction here of ori r3, r3, 0xYYYY
lhz r3,-32768(r3) #Change the offset amount on the lhz to null (lhz r3, 0 (r3))
cmpwi r3,2176
bne+ 0x0030
stwu r1,-128(r1)
mflr r12
stmw r3,8(r1)
li r3,1
lis r12,-32645
ori r12,r12,31776
mtlr r12
blrl
lmw r3,8(r1)
mtlr r12
addi r1,r1,128
blr #dont need this if you are compiling with pyiiasmh w/ c0 option

Here's the code compiled after the fixes were implemented
C0000000 0000000B
3C608143 80630004
2C030000 41A20040
3C608034 6063YYYY
A0630000 2C03ZZZZ
40A20030 9421FF80
7D8802A6 BC610008
3860000P 3D80807B
618C7C20 7D8803A6
4E800021 B8610008
7D8803A6 38210080
4E800020 00000000
Reply


Messages In This Thread
Force Shock Damage [1superchip] - by 1superchip - 06-13-2020, 03:04 AM
RE: Force Shock Damage [1superchip] - by Ro_ - 06-13-2020, 06:52 AM
RE: Force Shock Damage [1superchip] - by Seeky - 07-18-2020, 09:23 PM
RE: Force Shock Damage [1superchip] - by Vega - 07-18-2020, 09:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)