01-10-2025, 09:41 AM
(This post was last modified: 01-10-2025, 09:45 AM by JerryHatrick.)
(01-08-2025, 11:50 AM)Unnamed Wrote: There is a small mistake that causes the code to crash (I think) - the branch is wrong. When replacing
Code:li r11, 0xII # Our Item
with
Code:lis r11, 0x8000
lbz r11, 0x1501 (r11) # Our Item
the branch "bge skip" is extended by one instruction. So you need to change "40800038" to "4080003C".
Try again with this change and see if it works.
It'll work once or twice depending on luck, if not it will cause Dolphin to crash when the TC is about to produce the zap.
The only thing I've personally changed to the code is adding 60000000 before 00000000 at the end, which I'm guessing that was right to do.
What I don't understand is why would it work sometimes? I would find it more understandable if it didn't work at all period or worked all the time.