 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
NightEternal Advanced Cheater
Reputation: 0
Joined: 27 Nov 2007 Posts: 56
|
Posted: Thu Mar 06, 2008 5:34 pm Post subject: Possible to Break on a Value? |
|
|
Hello,
I'm wondering if anyone knows if it's possible for Cheat Engine (or any other debugger) to break on an instruction after some part of memory becomes a specific value.
For example, I'm looking for a value of 295911152. I would like to run my game as normal, and as soon as some memory (it may also be a register) owned by the process becomes that value, I'd like the debugger to break.
I could do the same thing manually by executing an instruction, search for a value, run the next instruction, search for a value... etc.
I know this would be fairly CPU intensive, but for the application that I'm running, it has a small memory footprint to begin with.
Thanks
|
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Mar 07, 2008 6:04 am Post subject: |
|
|
I don't think CE can do that, so unless you create your own debugger, I can only think of code caving, compare the value to 295911152, if its not 295911152 simply jump back to continue executing the code and if it is 295911152, go to an address with a breakpoint on it.
Should be something like:
| Code: | OriginalCode:
jmp CodeCave //fill with nop's if needed
BackToCode:
CodeCave:
cmp [Address],11A33EF0
jne BackToCode
jmp BackToCode |
Put your breakpoint on the last line, "jmp BackToCode" and it will break when its accessed, only when the value is 11A33EF0. (295911152)
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Fri Mar 07, 2008 6:41 am Post subject: |
|
|
| Olly can break on it in byte from the dump window.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|