Convert Double to Quad                            

86/88

N

186

N

286

N

386

Y

486

Y

CDQ

Ovfl

N

Dir

N

Int

N

Trap

N

Sign

N

Zero

N

Aux

N

Prty

N

Carry

N

    CDQ extends the sign bit of the EAX register into the EDX register. This
    instruction extends a signed double word value into the equivalent signed
    quad word value.

------------------------------------ Timing ----------------------------------

OpCode          Instruction             386     286     86
99              CDQ                     2

------------------------------------ Logic -----------------------------------

        if (EAX < 80000000h) then
                EDX = 0
        else
                EDX = FFh

See Also CBW CWD CWDE DIV IDIV


Copyright © 1985 to 2022 Beta Systems                            Last modified: Wednesday, January 05, 2022 .