Difference between revisions of "Assembler:Commands:MOVLHPS"

From Cheat Engine
Jump to navigation Jump to search
m
m
 
Line 56: Line 56:
  
 
newmem:
 
newmem:
  movlps xmm0,[sse]
+
  movhps xmm0,[sse]
  movhps xmm0,[simd]
+
  movlps xmm0,[simd]
  
 
  ; ...
 
  ; ...

Latest revision as of 01:02, 26 January 2018

command movlhps destination, source

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


Moves two packed single-precision floating-point values from the low quadword of the source operand (second operand) to the high quadword of the destination operand (first operand). The low quadword of the destination operand is left unchanged.

c9x.me/x86/html/file_module_x86_id_189.html


Command Parameters[edit]

Parameter Description
destination xmm
source xmm


Examples[edit]

movlhps xmm2,xmm4
movlhps xmm12,xmm8
movlhps xmm3,xmm5
movlhps xmm15,xmm11
movlhps xmm0,xmm0
[enable]

 ; ...

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

sse:
 dd (float)5000
 dd (float)3000

simd:
 dd (float)7000
 dd (float)1000

 ; ...

newmem:
 movhps xmm0,[sse]
 movlps xmm0,[simd]

 ; ...

code:
 movlhps xmm0,xmm0

 ; ...

 jmp return

 ; ...

return:

 [disable]

 ; ...


See also[edit]

External links[edit]