Skip to content
Guest Big Announcement

MOV R1, R7 changes value to 0 :/

Featured Replies

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

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

  • Author
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?

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.

  • Author
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

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

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.