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 


syntax for Lua break on FPU value?? pls give examples

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
octf
How do I cheat?
Reputation: 0

Joined: 03 Aug 2019
Posts: 2

PostPosted: Sat Aug 03, 2019 11:02 pm    Post subject: syntax for Lua break on FPU value?? pls give examples Reply with quote

Lua read FPU registers, how?

Code:

readDouble(ST0) == 10.0 ??


readDouble(ST[0]) == 10.0 ??


readDouble(FPU0) == 10.0 ??



what's the correct way to reference FPU registers?
I cannot figure it out... : Mad

Didn't find good documentation on this. Pls help
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 472

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

PostPosted: Sun Aug 04, 2019 4:07 am    Post subject: Reply with quote

The FP registers are a bit tricky.
Normally you'd execute
Code:

debug_getContext(true)

so it will populate the FP0 to FP7 variables and the XMM0 to XMM15 vars as well. It returns these in the format of bytetables


The problem is that the FP registers are stored as 80 bit floats and there currently is no byteTableToExtended() function

_________________
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
octf
How do I cheat?
Reputation: 0

Joined: 03 Aug 2019
Posts: 2

PostPosted: Mon Aug 05, 2019 3:52 am    Post subject: Reply with quote

Hummmm.
I do understand FPU regs are 80 bits long,
but what's the preferred way to manipulate bits in CE's Lua Engine?

Or perhaps experienced CE users always have a way to avoid debugging FPUs?
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 Lua Scripting 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