CWDE            Word to Double Extended              Flags: Not altered

CWDE CPU: 386+

Logic EAX ← sign-extend(AX)

CWDE converts the signed word in AX to a doubleword in EAX by
extending the most significant bit (the sign bit) in AX into all
bits of the high word of EAX.

Note
CWDE is the 32-bit form of CBW.


Opcode Format
98 CWDE


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