12-17-2021, 01:17 AM
So the actual address in CTR when breaking on the ori command during the jump routine is 0x800499CC
Naturally, I found that one of the attack bp's had an address in CTR that ended with 0xC also, so I
adjusted the code accordingly:
ori r4, r4, 1
mfctr r0
andi. r0, r0, 0xff
cmpwi r0, 0xcc
bne- end_code
rlwinm r4, r4, 0, 0, 30
end_code:
However, this immediately locks the game up on bootup.
Activating after taking control of the player worked and the code seemed to be working fine until I reached a
cutscene. Screen went black and only had audio.
Cleaned up r0,
ori r4, r4, 1
mfctr r0
andi. r0, r0, 0xff
cmpwi r0, 0xcc
bne- end_code
rlwinm r4, r4, 0, 0, 30
end_code:
li r0, 0
and the code worked like a champ.
The code also worked when I entered the second stage. Yay!!!
Changed operations to r12:
ori r4, r4, 1
mfctr r12
andi. r12, r12, 0xff
cmpwi r12, 0xcc
bne- end_code
rlwinm r4, r4, 0, 0, 30
end_code:
And the code works great. Just played through the first four stages with no problems.
Much better than having to use a button activator.
Good job!!!! Thanks!!!!
Naturally, I found that one of the attack bp's had an address in CTR that ended with 0xC also, so I
adjusted the code accordingly:
ori r4, r4, 1
mfctr r0
andi. r0, r0, 0xff
cmpwi r0, 0xcc
bne- end_code
rlwinm r4, r4, 0, 0, 30
end_code:
However, this immediately locks the game up on bootup.
Activating after taking control of the player worked and the code seemed to be working fine until I reached a
cutscene. Screen went black and only had audio.
Cleaned up r0,
ori r4, r4, 1
mfctr r0
andi. r0, r0, 0xff
cmpwi r0, 0xcc
bne- end_code
rlwinm r4, r4, 0, 0, 30
end_code:
li r0, 0
and the code worked like a champ.
The code also worked when I entered the second stage. Yay!!!
Changed operations to r12:
ori r4, r4, 1
mfctr r12
andi. r12, r12, 0xff
cmpwi r12, 0xcc
bne- end_code
rlwinm r4, r4, 0, 0, 30
end_code:
And the code works great. Just played through the first four stages with no problems.
Much better than having to use a button activator.
Good job!!!! Thanks!!!!