Difference between revisions of "Assembler:Commands:SUBPD"

From Cheat Engine
Jump to navigation Jump to search
(Created page with 'Category:Assembler '''command''' subpd ''destination, source'' Subtracts the source from the destination. Used for Subtracting Packed-Double-Precision Floating-Point Values.…')
 
m
 
Line 42: Line 42:
  
 
  alloc(newmem,$100)
 
  alloc(newmem,$100)
  alloc(sse,$10)
+
  globalalloc(sse,$10)
 +
 
 +
sse:
 +
dq (float)3000
 +
dq (float)5000
  
 
  ; ...
 
  ; ...
Line 52: Line 56:
  
 
  jmp return
 
  jmp return
 
sse:
 
dq (float)3000
 
dq (float)5000
 
  
 
  ; ...
 
  ; ...
  
return:
+
return:
  
 
  [disable]
 
  [disable]

Latest revision as of 16:15, 18 January 2018

command subpd destination, source

Subtracts the source from the destination. Used for Subtracting Packed-Double-Precision Floating-Point Values. The subpd command can only be used with xmm registers.


Performs an SIMD subtract of the two packed double-precision floating-point values in the source operand (second operand) from the two packed double-precision floating-point values in the destination operand (first operand), and stores the packed double-precision floating-point results in the destination operand. The source operand can be an XMM register or a 128-bit memory location. The destination operand is an XMM register.

c9x.me/x86/html/file_module_x86_id_309.html


Command Parameters[edit]

Parameter Description
destination xmm
source xmm / m128


Examples[edit]

subpd xmm0,xmm1
subpd xmm3,[edx+110]
subpd xmm15,[rdx+10]
subpd xmm5,[00123abc]
subpd xmm7,[UserDefinedSymbol]
[enable]

 ; ...

 alloc(newmem,$100)
 globalalloc(sse,$10)

sse:
 dq (float)3000
 dq (float)5000

 ; ...

newmem:
 subpd xmm0,[sse]

 ; ...

 jmp return

 ; ...

return:

 [disable]

 ; ...


See also[edit]

External links[edit]