Difference between revisions of "Assembler:Commands:MOVHPS"

From Cheat Engine
Jump to navigation Jump to search
m
m
 
Line 75: Line 75:
 
  ; ...
 
  ; ...
  
return:
+
return:
  
 
  [disable]
 
  [disable]

Latest revision as of 16:21, 18 January 2018

command movhps destination, source

Copies the data from source operand to destination operand. Used for Moving High-Packed Single-Precision Floating-Point Values. The movhps command can only be used with xmm registers.


Moves two packed single-precision floating-point values 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 two single-precision floating-point values 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.

c9x.me/x86/html/file_module_x86_id_188.html


Command Parameters[edit]

Parameter Description
destination xmm / m64
source m64 / xmm


Examples[edit]

movhps [edx+110],xmm4
movhps [rdx+10],xmm8
movhps xmm3,[edx+110]
movhps xmm15,[rdx+10]
movhps xmm5,[00123abc]
movhps [00123abc],xmm12
movhps xmm7,[UserDefinedSymbol]
movhps [UserdefinedSymbol],xmm10
[enable]

 ; ...

 alloc(newmem,$100)
 globalalloc(sse,08)
 globalalloc(simd,08)

sse:
 dd (float)5000
 ; dd (float)3000 ; can be used upon requirements

simd:
 dd 0
 dd 0

 ; ...

newmem:
 movhps xmm0,[sse]

 ; ...

code:
 movhps [simd],xmm0

 ; ...

 jmp return

 ; ...

return:

 [disable]

 ; ...


See also[edit]

External links[edit]