Jump to content

What can I change MOV R0, R6 to?


Go to solution Solved by Guest,

10 posts in this topic

Recommended Posts

  • Solution
Posted (edited)

@

 

So R0 seems to be your coins value. Based on that, I'm pretty sure you can change LDR R0, [R6, #0x24] to LDR R0, [R7] (0x101970) and

STR R0, [R6, #0x24] to STR R7, [R6, #0x24] (0x10197C). I don't know for sure if R0 could be your coins value, but give that a try. I also don't think you need to change MOV R0, R6. When hacking sub_x, GDB won't always spit out the correct offset so you have to look around and read the whole function, then figure out what needs to be changed. What I do is I get a blank piece of paper, and then write down what the function is saying. For example:

 

STR R0, [R1]

MOV R0, R1

LDR R1, [R2]

MOV R2, R1

 

This example is saying to store the value of R0 into R1, move R1 into R0, load the value of R2 into R1, then move the value of R1 into R2.

 

Knowing that, you can change it to:

 

STR R7, [R1]

MOV R0, R1

LDR R1, [R7]

MOV R2, R1

 

Since R7 usually is a number between 668 - 803 million, it is now saying to store the value of R7, or 803 million, into R1, move the value of R1 into R0, load the value of R7, or 803 million into R1, then move R1 into R2. I hope this helped, and get back to me about whether it worked or not. By the way, what game is it?

 

Sorry for the lengthy post. I just got into the zone and kept typing :p

Updated by Guest
Posted (edited)

@

 

So R0 seems to be your coins value. Based on that, I'm pretty sure you can change LDR R0, [R6, #0x24] to LDR R0, [R7] (0x101970) and

STR R0, [R6, #0x24] to STR R7, [R6, #0x24] (0x10197C). I don't know for sure if R0 could be your coins value, but give that a try. I also don't think you need to change MOV R0, R6. When hacking sub_x, GDB won't always spit out the correct offset so you have to look around and read the whole function, then figure out what needs to be changed. What I do is I get a blank piece of paper, and then write down what the function is saying. For example:

 

STR R0, [R1]

MOV R0, R1

LDR R1, [R2]

MOV R2, R1

 

This example is saying to store the value of R0 into R1, move R1 into R0, load the value of R2 into R1, then move the value of R1 into R2.

 

Knowing that, you can change it to:

 

STR R7, [R1]

MOV R0, R1

LDR R1, [R7]

MOV R2, R1

 

Since R7 usually is a number between 668 - 803 million, it is now saying to store the value of R7, or 803 million, into R1, move the value of R1 into R0, load the value of R7, or 803 million into R1, then move R1 into R2. I hope this helped, and get back to me about whether it worked or not. By the way, what game is it?

 

Sorry for the lengthy post. I just got into the zone and kept typing :p

The game is GangsterGranny2 Madness. Anyways I appreciate the lengthy post, it helped.

 

DUDE IT WORKED! THANK YOU SHMOO LOVE YOU <3

Updated by NitroxicDemon
Posted

The game is GangsterGranny2 Madness. Anyways I appreciate the lengthy post, it helped.

Just let me know if it worked or not, thanks :)

Posted

The game is GangsterGranny2 Madness. Anyways I appreciate the lengthy post, it helped.

 

DUDE IT WORKED! THANK YOU SHMOO LOVE YOU <3

lol that reaction tho :) i remember freaking out like that when i made my first sub_x hack, i know how you feel :)

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