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>packssdw pack doublewords into words (signed with saturation)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PACKSSDW        Pack Doublewords into Words (Signed with Saturation)

PACKSSDW destination, source                         CPU: MMX

        Logic
        mm(15..0)  <- SaturateSignedDwordToSignedWord mm(31..0)
        mm(31..16) <- SaturateSignedDwordToSignedWord mm(63..32)
        mm(47..32) <- SaturateSignedDwordToSignedWord mm/m64(31..0)
        mm(63..48) <- SaturateSignedDwordToSignedWord mm/m64(63..32)

    PACKSSDW packs two signed doublewords from the source operand and
    two signed doublewords from the destination operand into four signed
    words in the destination register.
    If the signed value of a doubleword is larger or smaller than the
    range of a signed word, the value is saturated (in the case of an
    overflow to 7FFFh, and in the case of an underflow to 8000h).

    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 6B /r    PACKSSDW mm, mm/m64

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