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 


Xmm registers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Sanglante
Newbie cheater
Reputation: 0

Joined: 27 Sep 2018
Posts: 24

PostPosted: Mon Dec 31, 2018 1:13 am    Post subject: Xmm registers Reply with quote

hi.

I seek a link to somewhere or someone that explain me why do we see 4 value / xmm register
we can't push/pop them so what is it ? and how to use them ?
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 17

Joined: 01 Feb 2016
Posts: 1480

PostPosted: Mon Dec 31, 2018 8:33 am    Post subject: Reply with quote

yes, you cant push/pop xmm registers. (they are not meant to be GPRs)

they are used by default for scalar floating points values, both single and double.

they are 128 bit wide, and can hold 2 64bit values, 4 32bit values, 8 16bit values or 16 8bit values.

examples:
https://wiki.cheatengine.org/index.php?title=Assembler:Commands:MOVSS
https://wiki.cheatengine.org/index.php?title=Assembler:Commands:MOVSD

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Back to top
View user's profile Send private message Visit poster's website
Sanglante
Newbie cheater
Reputation: 0

Joined: 27 Sep 2018
Posts: 24

PostPosted: Tue Jan 01, 2019 3:40 pm    Post subject: Reply with quote

So if i want to store xmm0 register :

label(storexmm0)

moss [storexmm0],xmm0

storexmm0:
dd 00000000

it's not enough ?

have to do a movq with dd 00000000 00000000 00000000 00000000 ?
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 17

Joined: 01 Feb 2016
Posts: 1480

PostPosted: Tue Jan 01, 2019 4:32 pm    Post subject: Reply with quote

Sanglante wrote:
label(storexmm0)

moss [storexmm0],xmm0

storexmm0:
dd 00000000

yes, movss.

Sanglante wrote:
have to do a movq with dd 00000000 00000000 00000000 00000000

if you meant the packed xmm register, then you can use MOVDQA.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Back to top
View user's profile Send private message Visit poster's website
Sanglante
Newbie cheater
Reputation: 0

Joined: 27 Sep 2018
Posts: 24

PostPosted: Tue Jan 01, 2019 4:42 pm    Post subject: Reply with quote

oh ok thx
Anyway my question was stupid i just use the first 4 bytes so store them are enough with a movss

Thx
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 17

Joined: 01 Feb 2016
Posts: 1480

PostPosted: Tue Jan 01, 2019 5:02 pm    Post subject: Reply with quote

OldCheatEngineUser wrote:
if you meant the packed xmm register, then you can use MOVDQA.

you may want to use movdqu instead of movdqa if the memory is not aligned.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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