Difference between revisions of "Assembler:Commands:ADDSS"
Jump to navigation
Jump to search
(→Examples) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
'''command''' addss ''destination, source'' | '''command''' addss ''destination, source'' | ||
− | Adds the source to the destination. Used for Adding Scalar Single-Precision Floating-Point Values. | + | Adds the source to the destination. Used for Adding Scalar Single-Precision Floating-Point Values. The addss command can only be used with xmm registers. |
Line 11: | Line 11: | ||
Adds the low single-precision floating-point values from the source operand (second operand) and the destination operand (first operand), and stores the single-precision floating-point result in the destination operand. The source operand can be an XMM register or a 32-bit memory location. The destination operand is an XMM register. The three high-order doublewords of the destination operand remain unchanged. | Adds the low single-precision floating-point values from the source operand (second operand) and the destination operand (first operand), and stores the single-precision floating-point result in the destination operand. The source operand can be an XMM register or a 32-bit memory location. The destination operand is an XMM register. The three high-order doublewords of the destination operand remain unchanged. | ||
− | [ | + | [https://c9x.me/x86/html/file_module_x86_id_9.html c9x.me/x86/html/file_module_x86_id_9.html] |
</div> | </div> | ||
Line 21: | Line 21: | ||
|- | |- | ||
|destination | |destination | ||
− | | | + | |xmm |
|- | |- | ||
|source | |source | ||
− | | | + | |xmm / m32 |
|} | |} | ||
Line 44: | Line 44: | ||
== External links == | == External links == | ||
− | * [ | + | * [https://c9x.me/x86/ c9x.me/x86/] |
* [http://ref.x86asm.net/ ref.x86asm.net] | * [http://ref.x86asm.net/ ref.x86asm.net] | ||
* [https://wikipedia.org/wiki/X86_instruction_listings wikipedia.org/wiki/X86_instruction_listings] | * [https://wikipedia.org/wiki/X86_instruction_listings wikipedia.org/wiki/X86_instruction_listings] |
Latest revision as of 00:24, 3 January 2018
command addss destination, source
Adds the source to the destination. Used for Adding Scalar Single-Precision Floating-Point Values. The addss command can only be used with xmm registers.
Destination = Destination + Source
Adds the low single-precision floating-point values from the source operand (second operand) and the destination operand (first operand), and stores the single-precision floating-point result in the destination operand. The source operand can be an XMM register or a 32-bit memory location. The destination operand is an XMM register. The three high-order doublewords of the destination operand remain unchanged.
Command Parameters[edit]
Parameter | Description |
---|---|
destination | xmm |
source | xmm / m32 |
Examples[edit]
addss xmm0,xmm1
addss xmm3,[edx+110]
addss xmm15,[rdx+10]
addss xmm5,[00123abc]
addss xmm7,[UserDefinedSymbol]