Re: Loading single word to a xmm register
- From: "\\\~\o/~///annabee" <faq@xxxxxxxxxxxxxx>
- Date: 28 Feb 2006 06:00:54 -0800
All these 8
words are stored in different memory location.
//
(just wanted to repeat that for Wannabee's benefit :) Bummer!
Frank //
Not to be pedantic, but the 8 words I am moving are also in diffrent
memory locations. In fact, 2 bytes a part :D :D
He didnt spesicfy what the nRastOffset was.
If it was 2 ......
I thought it was some schoolassignment :D
But I guess you may be right that this was too easy.
Anyways. I stepped his code in RosAsm, and you can do the same, to see
that in fact, even if I _did_ take a "spanish" one, I may have been
correct after all.
[<16 TestData: D§ 0_4321_ffff 0_4321_ffff 0_4321_ffff 0_4321_ffff]
[nRastOffset 2]
TestProc:
mov esi, TestData
mov ax, w§esi
shl eax, 16
add esi,nRastOffset
mov ax, w§esi
movd xmm0, eax
add esi,nRastOffset
mov ax, w§esi
shl eax, 16
add esi,nRastOffset
mov ax, w§esi
movd xmm1, eax
PSLLDQ xmm1, 4
orps xmm0, xmm1
add esi,nRastOffset
mov ax, w§esi
shl eax, 16
add esi,nRastOffset
mov ax, w§esi
movd xmm1, eax
PSLLDQ xmm1, 8
orps xmm0, xmm1
add esi,nRastOffset
mov ax, w§esi
shl eax, 16
mov bx, w§esi
shl ebx, 16
add esi,nRastOffset
mov ax, w§esi
movd xmm1, eax
PSLLDQ xmm1, 12
orps xmm0, xmm1
add esi,nRastOffset
ret
.
- Follow-Ups:
- Re: Loading single word to a xmm register
- From: Frank Kotler
- Re: Loading single word to a xmm register
- References:
- Loading single word to a xmm register
- From: enjoyamalp
- Re: Loading single word to a xmm register
- From: Frank Kotler
- Loading single word to a xmm register
- Prev by Date: Re: Ideal computer language from scratch?
- Next by Date: Re: linux inline assembly
- Previous by thread: Re: Loading single word to a xmm register
- Next by thread: Re: Loading single word to a xmm register
- Index(es):
Relevant Pages
|