直接上程序,lr怎么上来就直接操作。
seg000:08005298 sub_8005298 ; CODE XREF: sub_8005664+3B0鈫損
seg000:08005298 ; sub_8006E44+6鈫損 ...
seg000:08005298 PUSH {R4,R5}
seg000:0800529A MOV R4, LR
seg000:0800529C SUBS R4, R4, #1
seg000:0800529E LDRB R5, [R4]
seg000:080052A0 ADDS R4, R4, #1
seg000:080052A2 CMP R3, R5
seg000:080052A4 BCS loc_80052A8
seg000:080052A6 MOV R5, R3
seg000:080052A8
seg000:080052A8 loc_80052A8 ; CODE XREF: sub_8005298+C鈫慾
seg000:080052A8 LDRB R3, [R4,R5]
seg000:080052AA LSLS R3, R3, #1
seg000:080052AC ADDS R3, R4, R3
seg000:080052AE POP {R4,R5}
seg000:080052B0 BX R3
seg000:080052B0 ; End of function sub_8005298 |