Difference between revisions of "Assembler:Commands:MOVHPD"
(Created page with 'Category:Assembler '''command''' movhpd ''destination, source'' Copies the data from source operand to destination operand. Used for Moving High-Packed Double-Precision Floa…') |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 48: | Line 48: | ||
alloc(newmem,$100) | alloc(newmem,$100) | ||
− | + | globalalloc(sse,08) | |
+ | globalalloc(simd,08) | ||
+ | |||
+ | sse: | ||
+ | dq (float)5000 | ||
+ | |||
+ | simd: | ||
+ | dq 0 | ||
; ... | ; ... | ||
Line 58: | Line 65: | ||
code: | code: | ||
− | movhpd [ | + | movhpd [simd],xmm0 |
; ... | ; ... | ||
jmp return | jmp return | ||
− | |||
− | |||
− | |||
; ... | ; ... | ||
− | + | return: | |
[disable] | [disable] |
Latest revision as of 16:21, 18 January 2018
command movhpd destination, source
Copies the data from source operand to destination operand. Used for Moving High-Packed Double-Precision Floating-Point Values. The movhpd command can only be used with xmm registers.
Moves a double-precision floating-point value from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be an XMM register or a 64-bit memory location. This instruction allows a double-precision floating-point value to be moved to and from the high quadword of an XMM register and memory. It cannot be used for register to register or memory to memory moves. When the destination operand is an XMM register, the low quadword of the register remains unchanged.
Command Parameters[edit]
Parameter | Description |
---|---|
destination | xmm / m64 |
source | m64 / xmm |
Examples[edit]
movhpd [edx+110],xmm4
movhpd [rdx+10],xmm8
movhpd xmm3,[edx+110]
movhpd xmm15,[rdx+10]
movhpd xmm5,[00123abc]
movhpd [00123abc],xmm12
movhpd xmm7,[UserDefinedSymbol]
movhpd [UserdefinedSymbol],xmm10
[enable] ; ... alloc(newmem,$100) globalalloc(sse,08) globalalloc(simd,08) sse: dq (float)5000 simd: dq 0 ; ... newmem: movhpd xmm0,[sse] ; ... code: movhpd [simd],xmm0 ; ... jmp return ; ... return: [disable] ; ...