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 


help for convert code

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Xblade Of Heaven
Master Cheater
Reputation: 0

Joined: 16 Oct 2005
Posts: 394
Location: DEAD

PostPosted: Fri Jun 16, 2017 7:03 am    Post subject: help for convert code Reply with quote

hi guys, me try convert a word value to float value but i cant.

the code:

Code:
sub esp,#20
    movdqu [esp],xmm0
    mov dx,word ptr [edi]
    movsx eax,dx
    cvtsi2ss xmm0,[eax+0000016C]
    movss dword ptr [ecx+00000820],xmm0
    movdqu xmm0,[esp]
    add esp,#20


but no work, code is dword and me need convert word to dword and dword to float, thanks for all help!

regards

_________________
Welcome to the Hell.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Fri Jun 16, 2017 9:21 am    Post subject: Reply with quote

Code:
...
push eax
movsx eax,word ptr [edi]
cvtsi2ss xmm0,eax
movss dword ptr [ecx+00000820],xmm0
pop eax
...

_________________
Back to top
View user's profile Send private message MSN Messenger
Xblade Of Heaven
Master Cheater
Reputation: 0

Joined: 16 Oct 2005
Posts: 394
Location: DEAD

PostPosted: Fri Jun 16, 2017 10:13 am    Post subject: Reply with quote

thanks man, me now see the bad pointer on eax. Regards
_________________
Welcome to the Hell.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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