li r3, 0 <--this will not work.
li %r3, 0 <--this will work.
bl (address to bl to)
bl 0x248FA4
bdnz -0x14
beq 0x14
bne 0x2C
b [distance to branch]
b 0x2A044
b [distance to branch]
b 0x2A044
b 0xFFFD5FBC
b 0xFFFD5FBC
b -0x2A044
li r3, 0 <--this will not work.
li %r3, 0 <--this will work.
bl (address to bl to)
bl 0x248FA4
bdnz -0x14
beq 0x14
bne 0x2C
stdu %r1, -0x520(%r1)
mflr %r0
std %r0, 0x530(%r1)
stfd f30, 0x530(%r1)
stfd f31, 0x518(%r1)
std %r30, 0x500(%r1)
mr %r30, %r4
std %r31, 0x508(%r1)
lis %r4, aMenuPaintInter@h
mr %r31, %r3
addic %r4, %r4, aMenuPaintInter@l
std %r29, 0x4f8(%r1)
std %r28, 0x4f0(%r1)
std %r27, 0x4e8(%r1)
std %r26, 0x4e0(%r1)
std %r25, 0x4d8(%r1)
std %r24, 0x4d0(%r1)
std %r23, 0x4c8(%r1)
std %r22, 0x4c0(%r1)
std %r21, 0x4b8(%r1)
li %r3, -1
bl 0x4D6F9C
lis %r27, dword_1879CEC@ha
lwz %r3, dword_1879CEC@l(%r27)
lbz %r3, 8(%r3)
cmpwi %r3, 0
beq loc_276D44
stdu %r1, -0x520(%r1)
mflr %r0
std %r0, 0x530(%r1)
stfd f30, 0x530(%r1)
stfd f31, 0x518(%r1)
std %r30, 0x500(%r1)
mr %r30, %r4
std %r31, 0x508(%r1)
mr %r31, %r3
std %r29, 0x4f8(%r1)
std %r28, 0x4f0(%r1)
std %r27, 0x4e8(%r1)
std %r26, 0x4e0(%r1)
std %r25, 0x4d8(%r1)
std %r24, 0x4d0(%r1)
std %r23, 0x4c8(%r1)
std %r22, 0x4c0(%r1)
std %r21, 0x4b8(%r1)
li %r3, -1
bl 0x4D6F9C ;[COLOR="#008000"][B][U]THIS IS WHERE THE NEXT PROBLEM IS[/U][/B][/COLOR]
lis %r27, dword_1879CEC@ha
lwz %r3, dword_1879CEC@l(%r27)
lbz %r3, 8(%r3)
cmpwi %r3, 0
beq loc_276D44
stdu %r1, -0x520(%r1)
mflr %r0
std %r0, 0x530(%r1)
stfd f30, 0x530(%r1)
stfd f31, 0x518(%r1)
std %r30, 0x500(%r1)
mr %r30, %r4
std %r31, 0x508(%r1)
mr %r31, %r3
std %r29, 0x4f8(%r1)
std %r28, 0x4f0(%r1)
std %r27, 0x4e8(%r1)
std %r26, 0x4e0(%r1)
std %r25, 0x4d8(%r1)
std %r24, 0x4d0(%r1)
std %r23, 0x4c8(%r1)
std %r22, 0x4c0(%r1)
std %r21, 0x4b8(%r1)
li %r3, -1
[COLOR="#008000"]; this is where the branch ([I]bl 0x4D6F9C[/I]) [B]was[/B]... but I just took the branch func() itself and put it in the same func() as the one I'm calling:[/COLOR]
li %r3, 0
addc %r3, %r1, %r3
std %r5, 0x40(%r3)
std %r6, 0x48(%r3)
std %r7, 0x50(%r3)
std %r8, 0x58(%r3)
std %r9, 0x60(%r3)
std %r10, 0x68(%r3)
[COLOR="#008000"]; /end of branch func()[/COLOR]
lis %r27, dword_1879CEC@ha
lwz %r3, dword_1879CEC@l(%r27)
lbz %r3, 8(%r3)
cmpwi %r3, 0
beq loc_276D44
stdu %r1, -0x520(%r1)
mflr %r0
std %r0, 0x530(%r1)
stfd f30, 0x530(%r1)
stfd f31, 0x518(%r1)
std %r30, 0x500(%r1)
mr %r30, %r4
std %r31, 0x508(%r1)
lis %r4, aMenuPaintInter@h
mr %r31, %r3
addic %r4, %r4, aMenuPaintInter@l
std %r29, 0x4f8(%r1)
std %r28, 0x4f0(%r1)
std %r27, 0x4e8(%r1)
std %r26, 0x4e0(%r1)
std %r25, 0x4d8(%r1)
std %r24, 0x4d0(%r1)
std %r23, 0x4c8(%r1)
std %r22, 0x4c0(%r1)
std %r21, 0x4b8(%r1)
li %r3, -1
bl 0x4D6F9C
lis %r27, dword_1879CEC@ha
lwz %r3, dword_1879CEC@l(%r27)
lbz %r3, 8(%r3)
cmpwi %r3, 0
beq loc_276D44
stdu %r1, -0x520(%r1)
mflr %r0
std %r0, 0x530(%r1)
stfd f30, 0x530(%r1)
stfd f31, 0x518(%r1)
std %r30, 0x500(%r1)
mr %r30, %r4
std %r31, 0x508(%r1)
mr %r31, %r3
std %r29, 0x4f8(%r1)
std %r28, 0x4f0(%r1)
std %r27, 0x4e8(%r1)
std %r26, 0x4e0(%r1)
std %r25, 0x4d8(%r1)
std %r24, 0x4d0(%r1)
std %r23, 0x4c8(%r1)
std %r22, 0x4c0(%r1)
std %r21, 0x4b8(%r1)
li %r3, -1
bl 0x4D6F9C ;[COLOR="#008000"][B][U]THIS IS WHERE THE NEXT PROBLEM IS[/U][/B][/COLOR]
lis %r27, dword_1879CEC@ha
lwz %r3, dword_1879CEC@l(%r27)
lbz %r3, 8(%r3)
cmpwi %r3, 0
beq loc_276D44
stdu %r1, -0x520(%r1)
mflr %r0
std %r0, 0x530(%r1)
stfd f30, 0x530(%r1)
stfd f31, 0x518(%r1)
std %r30, 0x500(%r1)
mr %r30, %r4
std %r31, 0x508(%r1)
mr %r31, %r3
std %r29, 0x4f8(%r1)
std %r28, 0x4f0(%r1)
std %r27, 0x4e8(%r1)
std %r26, 0x4e0(%r1)
std %r25, 0x4d8(%r1)
std %r24, 0x4d0(%r1)
std %r23, 0x4c8(%r1)
std %r22, 0x4c0(%r1)
std %r21, 0x4b8(%r1)
li %r3, -1
[COLOR="#008000"]; this is where the branch ([I]bl 0x4D6F9C[/I]) [B]was[/B]... but I just took the branch func() itself and put it in the same func() as the one I'm calling:[/COLOR]
li %r3, 0
addc %r3, %r1, %r3
std %r5, 0x40(%r3)
std %r6, 0x48(%r3)
std %r7, 0x50(%r3)
std %r8, 0x58(%r3)
std %r9, 0x60(%r3)
std %r10, 0x68(%r3)
[COLOR="#008000"]; /end of branch func()[/COLOR]
lis %r27, dword_1879CEC@ha
lwz %r3, dword_1879CEC@l(%r27)
lbz %r3, 8(%r3)
cmpwi %r3, 0
beq loc_276D44
Copyright © 2024, NextGenUpdate.
All Rights Reserved.