Difference between revisions of "Assembler:Commands:ADDPD"

From Cheat Engine
Jump to navigation Jump to search
(Created page with 'Category:Assembler '''command''' addpd ''destination, source'' Adds the source to the destination. Used for Adding Packed Scalar Double-Precision Floating-Point Values. The …')
 
m
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
'''command''' addpd ''destination, source''
 
'''command''' addpd ''destination, source''
  
Adds the source to the destination. Used for Adding Packed Scalar Double-Precision Floating-Point Values. The addpd command can only be used with xmm registers.
+
Adds the source to the destination. Used for Adding Packed-Double-Precision Floating-Point Values. The addpd command can only be used with xmm registers.
  
  
Line 8: Line 8:
 
Performs an SIMD add of the two packed double-precision floating-point values from the source operand (second operand) and 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.
 
Performs an SIMD add of the two packed double-precision floating-point values from the source operand (second operand) and 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.
  
[https://c9x.me/x86/html/file_module_x86_id_7.html c9x.me/x86/html/file_module_x86_id_7.html]
+
[https://c9x.me/x86/html/file_module_x86_id_6.html c9x.me/x86/html/file_module_x86_id_6.html]
 
</div>
 
</div>
  
Line 42: Line 42:
  
 
  alloc(newmem,$100)
 
  alloc(newmem,$100)
  alloc(simd,$10)
+
  globalalloc(sse,$10)
 +
 
 +
sse:
 +
dq (float)3000
 +
dq (float)5000
  
 
  ; ...
 
  ; ...
  
 
newmem:
 
newmem:
  addps xmm0,[simd]
+
  addpd xmm0,[sse]
  
 
  ; ...
 
  ; ...
  
 
  jmp return
 
  jmp return
 
simd:
 
dq (float)3000
 
dq (float)5000
 
  
 
  ; ...
 
  ; ...
  
return:
+
return:
  
 
  [disable]
 
  [disable]

Latest revision as of 16:13, 18 January 2018

command addpd destination, source

Adds the source to the destination. Used for Adding Packed-Double-Precision Floating-Point Values. The addpd command can only be used with xmm registers.


Performs an SIMD add of the two packed double-precision floating-point values from the source operand (second operand) and 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_6.html


Command Parameters[edit]

Parameter Description
destination xmm
source xmm / m128


Examples[edit]

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

 ; ...

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

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

 ; ...

newmem:
 addpd xmm0,[sse]

 ; ...

 jmp return

 ; ...

return:

 [disable]

 ; ...


See also[edit]

External links[edit]