Jump to content

9 posts in this topic

Recommended Posts

Posted (edited)

Heyy,

 

This was the code I tried hacking:

MOV             R1, #(_OBJC_IVAR_$_State.coins - 0x3B080) ; Coins *coins;
ADD             R1, PC  ; Coins *coins;
LDR             R1, [R1] ; Coins *coins;  -----
LDR             R0, [R0,R1]
BX              LR

TO:

MOV             R1, #(_OBJC_IVAR_$_State.coins - 0x3B080) ; Coins *coins;
ADD             R1, PC  ; Coins *coins;
MOV             R1, R7  -----
LDR             R0, [R0,R1]
BX              LR

 

But the coins went from 200 to 0

 

Did I hack the wrong thing?

Updated by Ted2
Posted (edited)
1 minute ago, Ted2 said:

Heyy,

 

This was the code I tried hacking:


MOV             R1, #(_OBJC_IVAR_$_State.coins - 0x3B080) ; Coins *coins;
ADD             R1, PC  ; Coins *coins;
LDR             R1, [R1] ; Coins *coins;  -----
LDR             R0, [R0,R1]
BX              LR

TO:

MOV             R1, #(_OBJC_IVAR_$_State.coins - 0x3B080) ; Coins *coins;
ADD             R1, PC  ; Coins *coins;
MOV             R1, R7  -----
LDR             R0, [R0,R1]
BX              LR

mov r0,r7

But the coins went from 200 to 0

 

Did I hack the wrong function?

MOV R0,R7 coins is stored in r0

 

Updated by MRS14T3R
Posted
5 minutes ago, Archangel04 said:

probably is the "use x coins" with a "minimum 0"

try this 'mov r1, #1'

You mean at the LDR function?

If yes, it crashes now.

6 minutes ago, MRS14T3R said:

MOV R0,R7 coins is stored in r0

 

Oh, so I did it wrong?

Posted
4 hours ago, Ted2 said:

You mean at the LDR function?

If yes, it crashes now.

Oh, so I did it wrong?

R7 is a register that holds a giant value iin 99% of the cases. But not for all games. Can be zero too. Try to go for @MRS14T3R 's advice and try r0, r7.

Posted (edited)
1 hour ago, Mayaxaya said:

R7 is a register that holds a giant value iin 99% of the cases. But not for all games. Can be zero too. Try to go for @MRS14T3R 's advice and try r0, r7.

But the normal LDR Function started with R1.. But lemme try #I'mnoob

 

edit:

 

Crash :(

Updated by Ted2
Posted
On 31/03/2017 at 11:24 PM, Ted2 said:

But the normal LDR Function started with R1.. But lemme try #I'mnoob

 

edit:

 

Crash :(

Lol

Posted
Just now, Ted2 said:

So noob ;(

Not as noob as me :p I'm finally understanding the basic arm instructions lool!

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