Re: Loading single word to a xmm register



I have never used this instruction, but seems to work in RosAsm like
this :

[<16 TestData: D§ 0_ffff_ffff 0_ffff_ffff 0_ffff_ffff 0_ffff_ffff]
main:
MOVAPD xmm1 x§tESTData

__


MOVAPD
Usage: MOVAPD dest,src Modifies flags:
None
Moves a double quadword containing two packed double-precision
floating-point values from the 'src' (second operand) to the 'dest'
(first operand).
Move Aligned Packed Double-Precision FP Values


MOVAPD xmm1,xmm2/mem128 ; 66 0F 28 /r [WILLAMETTE,SSE2]
MOVAPD xmm1/mem128,xmm2 ; 66 0F 29 /r [WILLAMETTE,SSE2]

MOVAPD moves a double quadword containing 2 packed double-precision FP
values from the source operand to the destination. When the source or
destination operand is a memory location, it must be aligned on a
16-byte boundary or a general-protection exception (#GP) will be
generated.

To move data in and out of memory locations that are not known to be on
16-byte boundaries, use the MOVUPD instruction.

EXAMPLE:
movapd xmm1 Label

.