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 


Difference betwen MOV and MOVSS and MOVSD

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Rissorr
Master Cheater
Reputation: 3

Joined: 17 Sep 2013
Posts: 273
Location: Israel!

PostPosted: Mon Jul 07, 2014 5:37 am    Post subject: Difference betwen MOV and MOVSS and MOVSD Reply with quote

So im alrady undarstand that:

MOV = move DECIMAL
MOVSS = move SINGLE (float)
MOVSD= move DOUBLE

so for example i have this:

Code:
movss [ebx+14],xmm0


I want to hack it, and move into [ebx+14] the value 500, HOW DO I DO THAT?

And the secound instruction that i want to hack is:

Code:
movsd [ebx+18],xmm1


I need to also move 500 into the [ebx+18], so HOW?
Back to top
View user's profile Send private message
DaSpamer
Grandmaster Cheater Supreme
Reputation: 52

Joined: 13 Sep 2011
Posts: 1578

PostPosted: Mon Jul 07, 2014 6:02 am    Post subject: Reply with quote

Well I'd do this.
Code:
...
alloc(value,8)
value:
dq (double)500

script:
...
movq xmm0, value
movsd [ebx+18],xmm0
...

_________________
HEY Hitler
Do you get lazy when making trainers?
Well no more!
My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy

http://forum.cheatengine.org/viewtopic.php?t=564919
Back to top
View user's profile Send private message
Rissorr
Master Cheater
Reputation: 3

Joined: 17 Sep 2013
Posts: 273
Location: Israel!

PostPosted: Mon Jul 07, 2014 8:28 am    Post subject: Reply with quote

can you explain the diffrence of
MOVQ and MOVSD
MOV and MOVSS
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Mon Jul 07, 2014 9:50 am    Post subject: Reply with quote

LemonMan wrote:
can you explain the diffrence of
MOVQ and MOVSD
MOV and MOVSS


This is obviously what you're looking for:
http://forum.cheatengine.org/viewtopic.php?t=573983
(2nd post of mgr.inz.Player)
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Mon Jul 07, 2014 11:13 am    Post subject: Re: Difference betwen MOV and MOVSS and MOVSD Reply with quote

LemonMan wrote:
So im alrady undarstand that:

MOV = move DECIMAL
MOVSS = move SINGLE (float)
MOVSD= move DOUBLE

so for example i have this:

Code:
movss [ebx+14],xmm0


I want to hack it, and move into [ebx+14] the value 500, HOW DO I DO THAT?

And the secound instruction that i want to hack is:

Code:
movsd [ebx+18],xmm1


I need to also move 500 into the [ebx+18], so HOW?


These are called SSE instructions and they may look intimidating to use at first but are actually really easy to work with, you just have to think 'big' as you are working with 64 bit.

To answer your questions, read up on movss
http://www.jaist.ac.jp/iscenter-new/mpc/altix/altixdata/opt/intel/vtune/doc/users_guide/mergedProjects/analyzer_ec/mergedProjects/reference_olh/mergedProjects/instructions/instruct32_hh/vc203.htm

and google for other instruction you want to know about.

MOVQ is Move Quadword

In the example DaSpamer posted, he allocs a dq (double-precision float) and moves it to xmm then to [ebx+18] because you can't directly move two values between memory locations just like normal (32bit) instructions.

I prefer to work with 32bit registers still as there's rarely i have to use such big values (don't see doubles often) and for what you're trying to accomplish you can do it this way

mov [ebx+14], (float)500

You can even work with doubles by doing something like
mov [ebx+14], firstpartofdoubledatatype (make sure you understand the endians to do this properly)
mov [ebx+14+4], secondpartofdoubledatatype

Of course, thats just me and someone else would suggest using the SSE instructions.

Hope this helps

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Rissorr
Master Cheater
Reputation: 3

Joined: 17 Sep 2013
Posts: 273
Location: Israel!

PostPosted: Mon Jul 07, 2014 2:07 pm    Post subject: Reply with quote

WOW thanks! Very Happy helped!
so lats say i want to move [eax+18] into [ebx+14] i do:

movss xmm0,[eax+18]
movss [ebx+14],xmm0

will it work?
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Mon Jul 07, 2014 2:17 pm    Post subject: Reply with quote

LemonMan wrote:
WOW thanks! Very Happy helped!
so lats say i want to move [eax+18] into [ebx+14] i do:

movss xmm0,[eax+18]
movss [ebx+14],xmm0

will it work?


Correct.

It will move double data type so make sure that is what you want (to not get undesired effects/values).

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
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