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 


[H] Float Precision conversion

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

Joined: 14 Feb 2009
Posts: 8

PostPosted: Fri May 01, 2015 10:24 am    Post subject: [H] Float Precision conversion Reply with quote

Hey guys,
Recently I'm trying to convert some Scalar single fp with no sucess.
Code:
Darkest.exe+52F403 - F3 0F10 46 24         - movss xmm0,[esi+24]
Darkest.exe+52F408 - 0F57 C9               - xorps xmm1,xmm1
Darkest.exe+52F40B - E9 F00B4406           - jmp 07A20000
Darkest.exe+52F410 - 0F2F C8               - comiss xmm1,xmm0
Darkest.exe+52F413 - F3 0F11 46 24         - movss [esi+24],xmm0


I would like to set the xmm0 equal to 10.0, but i don't know how to do and theren't tutorials explaining how to do that.
The only thing i can do is to add and subtract the xmm0 with itself.
Sorry for my english!
Back to top
View user's profile Send private message
BanCheese
Cheater
Reputation: 0

Joined: 22 Oct 2014
Posts: 49

PostPosted: Fri May 01, 2015 10:43 am    Post subject: Reply with quote

You can use CVTSI2SS, which stands for Convert Doubleword Integer to Scalar Single- Precision Floating-Point Value. You can use it like this:
Code:
mov eax, 10
cvtsi2ss xmm0, eax


This is one of my favorite sites for looking up things like this: http://x86.renejeschke.de/

_________________
A guy who likes memory hacking.
Back to top
View user's profile Send private message
r4dbrnu
How do I cheat?
Reputation: 0

Joined: 14 Feb 2009
Posts: 8

PostPosted: Fri May 01, 2015 11:02 am    Post subject: Reply with quote

It worked!
Thanks a lot!!!
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