BrashL
March 3rd, 2005, 10:02
Hi,
First post so go easy.
I'm working on a palm program using PalmDemon and PilotDis. I'm 99% sure I found the subroutine I need to patch, but instead of calling a specific location, the jsr is calling an address register that I can't figuire out:
I've never seen this in any tutorials and I can't figuire out where A5 is even populated. Any advice on where to look is greatly appreciated.
First post so go easy.
I'm working on a palm program using PalmDemon and PilotDis. I'm 99% sure I found the subroutine I need to patch, but instead of calling a specific location, the jsr is calling an address register that I can't figuire out:
Code:
0003b37a 4eadf2a4 L7590 JSR -3420(A5)
0003b37e 4a00 TST.B D0
0003b380 4fef000c LEA 12(A7),A7
0003b384 6726 BEQ L7591
0003b386 206effee MOVEA.L -18(A6),A0
0003b38a 48680006 PEA 6(A0)
0003b38e 206dcbba MOVEA.L -13382(A5),A0
0003b392 20680014 MOVEA.L 20(A0),A0
0003b396 4868003c PEA 60(A0)
0003b39a 4e4fa0c5 TRAP #15,$A0C5 = sysTrapStrCopy
0003b39e 3f3c0571 MOVE.W #1393!$571,-(A7)
0003b3a2 4e4fa192 TRAP #15,$A192 = sysTrapFrmAlert
0003b3a6 4fef000a LEA 10(A7),A7
0003b3aa 6032 BRA L7593
0003b3ac 3f3c0572 L7591 MOVE.W #1394!$572,-(A7)
0003b3b0 4e4fa192 TRAP #15,$A192 = sysTrapFrmAlert
0003b3b4 486effee PEA -18(A6)
0003b3b8 600a BRA L7592
I've never seen this in any tutorials and I can't figuire out where A5 is even populated. Any advice on where to look is greatly appreciated.