View previous topic :: View next topic |
Author |
Message |
drewsk1 Newbie cheater
Reputation: 1
Joined: 02 Nov 2015 Posts: 20
|
Posted: Tue Nov 10, 2015 5:25 am Post subject: Taking Bytes Out of xmm Register |
|
|
I've been looking through the forums, but I haven't found an answer. I'm curious if you can move the high quad word of xmm0 to the low qword then take out the last 4 bytes and move it to eax.
movhlps xmm0,xmm0
mov eax,[xmm0+12]
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Tue Nov 10, 2015 9:44 am Post subject: |
|
|
Some combination of
Code: | movlps [myvar],xmm0
movhps [myvar],xmm0
mov eax,[myvar] |
|
|
Back to top |
|
 |
drewsk1 Newbie cheater
Reputation: 1
Joined: 02 Nov 2015 Posts: 20
|
Posted: Tue Nov 10, 2015 1:58 pm Post subject: |
|
|
Zanzer wrote: | Some combination of
Code: | movlps [myvar],xmm0
movhps [myvar],xmm0
mov eax,[myvar] |
|
Thank you, this is exactly what I was looking for. =)
|
|
Back to top |
|
 |
|