Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- iAPx86 - <b>pcmpgtw packed compare for greater than, word</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PCMPGTW         Packed Compare for Greater Than, Word

PCMPGTW destination, source                          CPU: MMX

        Logic   if mm(15..0)  > mm/m64(15..0)
                     mm(15..0)  <- 0FFFFh
                else mm(15..0)  <- 0
                endif
                if mm(31..16) > mm/m64(31..16)
                     mm(31..16) <- 0FFFFh
                else mm(31..16) <- 0
                endif
                if mm(47..32) > mm/m64(47..32)
                     mm(47..32) <- 0FFFFh
                else mm(47..32) <- 0
                endif
                if mm(63..48) > mm/m64(63..48)
                     mm(63..48) <- 0FFFFh
                else mm(63..48) <- 0
                endif

    PCMPGTBW compares the signed words in the destination operand to the
    signed words in the source operand. If the signed data elements in
    destination are greater than those in the source operand, the
    corresponding data element in the destination operand is set to all
    ones. Otherwise, it is set to all zeros. 

    The destination operand is an MMX register. The source operand can
    either be an MMX register or a 64-bit memory operand.


    Opcode      Format
    0F 65 /r    PCMPGTW mm, mm/m64

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson