وو

وحید آنلاین . آرشیو وبلاگ وحیدمی دات آی آر . شرکت بیان. vahidmy.blog.ir

وو

وحید آنلاین . آرشیو وبلاگ وحیدمی دات آی آر . شرکت بیان. vahidmy.blog.ir

PSUBxx

PSUBxx 

Usage:  PSUBxx    dest,src                          Modifies flags: None

Performs an SIMD subtract of the packed signed integers of the 'src' from the packed signed integers of the 'dest'  and stores the packed integer results in the 'dest'  operand. Over-flow is handled with signed saturation. These instructions can operate on either 64-bit or 128-bit operands. 

Subtract Packed Integers With Saturation


PSUBSB mm1,mm2/m64            ; 0F E8 /r             [PENT,MMX]

PSUBSW mm1,mm2/m64            ; 0F E9 /r             [PENT,MMX]


PSUBSB xmm1,xmm2/m128         ; 66 0F E8 /r     [WILLAMETTE,SSE2]

PSUBSW xmm1,xmm2/m128         ; 66 0F E9 /r     [WILLAMETTE,SSE2]


PSUBUSB mm1,mm2/m64           ; 0F D8 /r             [PENT,MMX]

PSUBUSW mm1,mm2/m64           ; 0F D9 /r             [PENT,MMX]


PSUBUSB xmm1,xmm2/m128        ; 66 0F D8 /r     [WILLAMETTE,SSE2]

PSUBUSW xmm1,xmm2/m128        ; 66 0F D9 /r     [WILLAMETTE,SSE2]


PSUBx and PSUBUxx subtracts packed integers in the source operand from those in the destination operand, and use saturation for results that are outide the range supported by the destination operand.


PSUBSB    operates on signed bytes.      PSUBSW    operates on signed words. 

PSUBUSB  operates on unsigned bytes.  PSUBUSW  operates on unsigned words.


EXAMPLE:

psubsb xmm1 Label|psubsw xmm1 Label|psubusb xmm1 Label|psubusw xmm1 Label