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 


Break on FPU Condition

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Sun Jan 11, 2015 9:41 pm    Post subject: Break on FPU Condition Reply with quote

Is there a way to break point if ST(0) meets some condition?

Thanks!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25824
Location: The netherlands

PostPosted: Sun Jan 11, 2015 10:34 pm    Post subject: Reply with quote

no, that is currently not possible.
try a code injection that checks the state and when it matches let it execute a nop where you can set the breakpoibt

_________________
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
View user's profile Send private message MSN Messenger
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Mon Jan 12, 2015 6:22 am    Post subject: Reply with quote

Thanks Dark Byte. Will try that.

How can check the FPU on every instruction? Like in one frame of certain game I want to check that condition on every instruction and if is true provoke a break?
Back to top
View user's profile Send private message
zm0d
Master Cheater
Reputation: 7

Joined: 06 Nov 2013
Posts: 423

PostPosted: Mon Jan 12, 2015 7:06 am    Post subject: Reply with quote

You can't unless you're going to use breakpoints and trace through the code. Use codeinjection on the interesting part of code, where you can access your FPU register you need and modify the fpu. There you go.
Back to top
View user's profile Send private message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Fri Jan 16, 2015 6:30 am    Post subject: Reply with quote

Thanks. I will need to check on each instruction. In the code it is not clear when this happens, long and complex code - been back tracing for days and will need this option.
How can I check ST(0) value within a whole frame?
Thanks!
Back to top
View user's profile Send private message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Sun Jan 18, 2015 5:47 pm    Post subject: Reply with quote

No takers?
Back to top
View user's profile Send private message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Sat Mar 14, 2015 11:40 am    Post subject: Reply with quote

Can someone give me some help on how to create a code injection to check when ST0 has a specific value in a range of code?

Thanks
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Mar 14, 2015 11:48 am    Post subject: Reply with quote

Maybe?

Code:
alloc(temp,4)

newmem:
  fst [temp]
  push eax
  mov eax,[temp]
  cmp eax,(float)3.0 // exact value to find
  pop eax
  jne code
  nop // break on this
Back to top
View user's profile Send private message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Sat Mar 14, 2015 11:59 am    Post subject: Reply with quote

Thanks.

Can I do this injection code in each FLD instruction for a whole range of code? Or this simply works only on one instruction?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Mar 14, 2015 12:18 pm    Post subject: Reply with quote

You would need to individually add this code at each instruction you're trying to debug.
Back to top
View user's profile Send private message
fred26
Expert Cheater
Reputation: 0

Joined: 20 Dec 2014
Posts: 103

PostPosted: Sat Mar 14, 2015 12:37 pm    Post subject: Reply with quote

Ok, thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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