Difference between revisions of "Assembler:Commands:MOVSD"
m |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
When the source and destination operands are XMM registers, the high quadword of the destination operand remains unchanged. When the source operand is a memory location and destination operand is an XMM registers, the high quadword of the destination operand is cleared to all 0s. | When the source and destination operands are XMM registers, the high quadword of the destination operand remains unchanged. When the source operand is a memory location and destination operand is an XMM registers, the high quadword of the destination operand is cleared to all 0s. | ||
− | [ | + | [https://c9x.me/x86/html/file_module_x86_id_204.html c9x.me/x86/html/file_module_x86_id_204.html] |
</div> | </div> | ||
Line 20: | Line 20: | ||
|- | |- | ||
|destination | |destination | ||
− | | | + | |xmm / m64 |
|- | |- | ||
|source | |source | ||
− | | | + | |m64 / xmm |
|} | |} | ||
Line 41: | Line 41: | ||
movsd xmm5,[00123abc] | movsd xmm5,[00123abc] | ||
− | movsd [ | + | movsd [00123abc],xmm12 |
movsd xmm7,[UserDefinedSymbol] | movsd xmm7,[UserDefinedSymbol] | ||
Line 51: | Line 51: | ||
== External links == | == External links == | ||
− | * [ | + | * [https://c9x.me/x86/ c9x.me/x86/] |
* [http://ref.x86asm.net/ ref.x86asm.net] | * [http://ref.x86asm.net/ ref.x86asm.net] | ||
* [https://wikipedia.org/wiki/X86_instruction_listings wikipedia.org/wiki/X86_instruction_listings] | * [https://wikipedia.org/wiki/X86_instruction_listings wikipedia.org/wiki/X86_instruction_listings] |
Latest revision as of 00:46, 3 January 2018
command movsd destination, source
Copies the data from source operand to destination operand. Used for Moving Scalar Double-Precision Floating-Point Values. The movsd command can only be used with xmm registers.
Moves a scalar double-precision floating-point value from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be XMM registers or 64-bit memory locations. This instruction can be used to move a double-precision floating-point value to and from the low quadword of an XMM register and a 64-bit memory location, or to move a double-precision floating-point value between the low quadwords of two XMM registers. The instruction cannot be used to transfer data between memory locations.
When the source and destination operands are XMM registers, the high quadword of the destination operand remains unchanged. When the source operand is a memory location and destination operand is an XMM registers, the high quadword of the destination operand is cleared to all 0s.
Command Parameters[edit]
Parameter | Description |
---|---|
destination | xmm / m64 |
source | m64 / xmm |
Examples[edit]
movsd xmm0,xmm1
movsd [edx+110],xmm4
movsd [rdx+10],xmm8
movsd xmm3,[edx+110]
movsd xmm15,[rdx+10]
movsd xmm5,[00123abc]
movsd [00123abc],xmm12
movsd xmm7,[UserDefinedSymbol]
movsd [UserdefinedSymbol],xmm10