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 


simple question on how to write float

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

Joined: 16 Apr 2010
Posts: 138

PostPosted: Wed Dec 28, 2011 2:57 am    Post subject: simple question on how to write float Reply with quote

hi. im having quite stupid question, but since CE's assembler works COMPLETELY different from Olly and Tsearch (which im used to), i don't know how to write a simple float value at end of instruction.

my instruction is this:
Code:
fld dword ptr [newmem+100]


i want some float value to be @ location of newmem+100
how would i do that ?

in olly and tsearch i would just do this
Code:
fld dword ptr [newmem+100],00008040

which should be float value 4.0
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Dec 28, 2011 8:45 am    Post subject: Reply with quote

Code:

mov [newmem+100],00008040

or
Code:

mov [newmem+100],(float)4


Or if you mean at the time that the script is executed and not done by executing of the injected code:
Code:

newmem+100:
dd 8040

or
Code:

dd (float)4

_________________
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
mordax
Expert Cheater
Reputation: 1

Joined: 16 Apr 2010
Posts: 138

PostPosted: Mon Jan 02, 2012 1:29 pm    Post subject: Reply with quote

thanks, i got it working.
however its not reversed float like this:
Code:
mov [newmem+100],00008040


value 4 would be:
Code:
mov [newmem+100],40800000



i like
Code:
mov [newmem+100],(float)4
more, have to try it, didnt know this kind of way is possible.
i guess you have tutorials about it somewhere, but its extremely hard to find something if i don't know what to search for exactly.
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