Assembler:Commands:ADDPS

From Cheat Engine
Revision as of 11:24, 18 January 2018 by OldCheatEngineUser (talk | contribs)
Jump to navigation Jump to search

command addps destination, source

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


Performs an SIMD add of the four packed single-precision floating-point values from the source operand (second operand) and the destination operand (first operand), and stores the packed single-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_7.html


Command Parameters

Parameter Description
destination xmm
source xmm / m128


Examples

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

 ; ...

 alloc(newmem,$100)
 alloc(simd,$10)

 ; ...

newmem:
 addps xmm0,[simd]

 ; ...

 jmp return

simd:
 dd (float)3000
 dd (float)5000

 ; ...

 return:

 [disable]

 ; ...


See also

External links