View previous topic :: View next topic |
Author |
Message |
hjefferson Newbie cheater
Reputation: 0
Joined: 19 May 2012 Posts: 12
|
Posted: Sat May 19, 2012 9:31 pm Post subject: How can I break when an address is at a certain value? |
|
|
I am breaking and tracing on a point and getting this :
Code: | imgur,com/O29Px.png
(replace commas to see picture)
|
As you can see, the value at 017943A0 is being moved into EAX, giving it the value 1108.
I want to find out how this value 1108 is created, so I want to find out what writes it to 017943A0.
But if I use "what writes to this address", I get hundreds of operations - I only want to find the one that makes it 1108.
How do I do this?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25781 Location: The netherlands
|
Posted: Sat May 19, 2012 9:48 pm Post subject: |
|
|
Do you wish to break or break and trace ?
Anyhow, based on your question formulation: you wish to find the instruction that writes the value 1108 to address 017943a0
(so not a break, just a find and record state)
Easiest method:
Use find what writes to this address (might want to pause the game first if it's constantly written)
Go to memory view and click view->breakpoint list
rightclick the breakpoint and choose "set/change condition"
Go to the easy tab and fill in
Code: |
readInteger(0x017943a0)==1108
|
(if you meant hexadecimal 1108, then do 0x1108 )
click ok
now play the game (and resume if you suspended it) and make that value change to 1108
You will only see instructions that write 1108 to it
Some extra info for those that care: "find what xxxx this address" breakpoints break AFTER the instruction has been executed. That is why readInteger is a viable solution
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
hjefferson Newbie cheater
Reputation: 0
Joined: 19 May 2012 Posts: 12
|
Posted: Sat May 19, 2012 10:15 pm Post subject: |
|
|
That worked perfectly, thanks!
|
|
Back to top |
|
 |
igor Expert Cheater
Reputation: 1
Joined: 04 Apr 2012 Posts: 145
|
Posted: Sun May 20, 2012 10:00 am Post subject: |
|
|
@Dark Byte
Thanks, It's great tip of the day.
|
|
Back to top |
|
 |
|