Difference between revisions of "Assembler:Commands:SUBPS"
Jump to navigation
Jump to search
(Created page with 'Category:Assembler '''command''' subps ''destination, source'' Subtracts the source from the destination. Used for Subtracting Packed-Single-Precision Floating-Point Values.…') |
m |
||
Line 56: | Line 56: | ||
dd (float)3000 | dd (float)3000 | ||
dd (float)5000 | dd (float)5000 | ||
+ | ; dd (float)7000 ; can be used upon requirements | ||
+ | ; dd (float)1000 ; can be used upon requirements | ||
; ... | ; ... |
Revision as of 12:31, 18 January 2018
command subps destination, source
Subtracts the source from the destination. Used for Subtracting Packed-Single-Precision Floating-Point Values. The subps command can only be used with xmm registers.
Performs an SIMD subtract of the four packed single-precision floating-point values in the source operand (second operand) from the four packed single-precision floating-point values in 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.
Command Parameters
Parameter | Description |
---|---|
destination | xmm |
source | xmm / m128 |
Examples
subps xmm0,xmm1
subps xmm3,[edx+110]
subps xmm15,[rdx+10]
subps xmm5,[00123abc]
subps xmm7,[UserDefinedSymbol]
[enable] ; ... alloc(newmem,$100) alloc(sse,$10) ; ... newmem: subps xmm0,[sse] ; ... jmp return sse: dd (float)3000 dd (float)5000 ; dd (float)7000 ; can be used upon requirements ; dd (float)1000 ; can be used upon requirements ; ... return: [disable] ; ...