| View previous topic :: View next topic |
| Author |
Message |
fred26 Expert Cheater
Reputation: 0
Joined: 20 Dec 2014 Posts: 103
|
Posted: Sun Jan 11, 2015 9:41 pm Post subject: Break on FPU Condition |
|
|
Is there a way to break point if ST(0) meets some condition?
Thanks!
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25824 Location: The netherlands
|
Posted: Sun Jan 11, 2015 10:34 pm Post subject: |
|
|
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 |
|
 |
fred26 Expert Cheater
Reputation: 0
Joined: 20 Dec 2014 Posts: 103
|
Posted: Mon Jan 12, 2015 6:22 am Post subject: |
|
|
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 |
|
 |
zm0d Master Cheater
Reputation: 7
Joined: 06 Nov 2013 Posts: 423
|
Posted: Mon Jan 12, 2015 7:06 am Post subject: |
|
|
| 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 |
|
 |
fred26 Expert Cheater
Reputation: 0
Joined: 20 Dec 2014 Posts: 103
|
Posted: Fri Jan 16, 2015 6:30 am Post subject: |
|
|
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 |
|
 |
fred26 Expert Cheater
Reputation: 0
Joined: 20 Dec 2014 Posts: 103
|
Posted: Sun Jan 18, 2015 5:47 pm Post subject: |
|
|
| No takers?
|
|
| Back to top |
|
 |
fred26 Expert Cheater
Reputation: 0
Joined: 20 Dec 2014 Posts: 103
|
Posted: Sat Mar 14, 2015 11:40 am Post subject: |
|
|
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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Mar 14, 2015 11:48 am Post subject: |
|
|
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 |
|
 |
fred26 Expert Cheater
Reputation: 0
Joined: 20 Dec 2014 Posts: 103
|
Posted: Sat Mar 14, 2015 11:59 am Post subject: |
|
|
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 |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Mar 14, 2015 12:18 pm Post subject: |
|
|
| You would need to individually add this code at each instruction you're trying to debug.
|
|
| Back to top |
|
 |
fred26 Expert Cheater
Reputation: 0
Joined: 20 Dec 2014 Posts: 103
|
Posted: Sat Mar 14, 2015 12:37 pm Post subject: |
|
|
| Ok, thanks!
|
|
| Back to top |
|
 |
|