Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Possible to Break on a Value?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
NightEternal
Advanced Cheater
Reputation: 0

Joined: 27 Nov 2007
Posts: 56

PostPosted: Thu Mar 06, 2008 5:34 pm    Post subject: Possible to Break on a Value? Reply with quote

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
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Mar 07, 2008 6:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Fri Mar 07, 2008 6:41 am    Post subject: Reply with quote

Olly can break on it in byte from the dump window.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites