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>cdq convert double to quad flags: not altered</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CDQ             Convert Double to Quad               Flags: Not altered

CDQ                                                  CPU: 386+

        Logic   if EAX < 80000000h
                   EDX . 0
                else
                   EDX . FFFFFFFFh
                endif

    CDQ converts the signed doubleword in EAX to a signed 64-bit
    integer in the register pair EDX:EAX by extending the most
    significant bit of EAX (the sign bit) into all the bits of EDX.

    Note
    CDQ is the 32-bit form of CWD.


    Opcode      Format
    99          CDQ


    Length and timing
    Operands    Bytes   8088    186     286     386     486     Pentium
    -            1                               2       3       2   NP

See Also: CWD CBW CWDE IDIV DIV MOVSX

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