Jump to content

12 posts in this topic

Recommended Posts

Posted
__text:000CE5D2 loc_CE5D2                               ; CODE XREF: sub_CE560+54j
__text:000CE5D2                 MOV             R0, #(off_1D2383C - 0xCE5DE)
__text:000CE5DA                 ADD             R0, PC ; off_1D2383C ; Rd = Op1 + Op2
__text:000CE5DC                 LDR             R5, [R0] ; unk_1FDCE3C ; Load from Memory
__text:000CE5DE                 LDR             R0, [R5] ; Load from Memory
__text:000CE5E0                 LDRB.W          R1, [R0,#0xB2] ; Load from Memory
__text:000CE5E4                 TST.W           R1, #1  ; Set cond. codes on Op1 & Op2
__text:000CE5E8                 BEQ             loc_CE5F8 ; Branch
__text:000CE5EA                 LDR             R1, [R7,#0x60] ; Load from Memory <----> loads r7 into r1, money
__text:000CE5EC                 CBNZ            R1, loc_CE5F8 ; Compare and Branch on Non-Zero
__text:000CE5EE                 MOV.W           R1, #0xFFFFFFFF ; Rd = Op2
__text:000CE5F2                 STR             R1, [SP,#0x68+var_48] ; Store to Memory
__text:000CE5F4                 BL.W            sub_E09B20 ; Branch with Link

 

Posted
1 hour ago, Ted2 said:

__text:000CE5D2 loc_CE5D2                               ; CODE XREF: sub_CE560+54j
__text:000CE5D2                 MOV             R0, #(off_1D2383C - 0xCE5DE)
__text:000CE5DA                 ADD             R0, PC ; off_1D2383C ; Rd = Op1 + Op2
__text:000CE5DC                 LDR             R5, [R0] ; unk_1FDCE3C ; Load from Memory
__text:000CE5DE                 LDR             R0, [R5] ; Load from Memory
__text:000CE5E0                 LDRB.W          R1, [R0,#0xB2] ; Load from Memory
__text:000CE5E4                 TST.W           R1, #1  ; Set cond. codes on Op1 & Op2
__text:000CE5E8                 BEQ             loc_CE5F8 ; Branch
__text:000CE5EA                 LDR             R1, [R7,#0x60] ; Load from Memory <----> loads r7 into r1, money
__text:000CE5EC                 CBNZ            R1, loc_CE5F8 ; Compare and Branch on Non-Zero
__text:000CE5EE                 MOV.W           R1, #0xFFFFFFFF ; Rd = Op2
__text:000CE5F2                 STR             R1, [SP,#0x68+var_48] ; Store to Memory
__text:000CE5F4                 BL.W            sub_E09B20 ; Branch with Link

 

LDR               R1, [R0,#0x60] changed to

LDR               R1, [R7,#0x60]

nothing happened att all, not even crash :)

Are you sure that i dont need to do something with text:000CE5F4       BL.W     sub_E09B20

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines