
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TASM 2.x / MASM 6.x Assembly Language - <b>cwd convert word to doubleword flags: not altered</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CWD Convert Word to Doubleword Flags: not altered
CWD
Logic: if (AX < 8000h) then
DX . 0
else
DX . FFFFh
CWD extends the sign bit of the AX register into the DX register. This
instruction generates the double-word equivalent of the signed number
in the AX register.
--------------------------------------------------------------------------
Operands Clocks Transfers Bytes Example
no operands 5 - 1 CWD
--------------------------------------------------------------------------
Note: This instruction will set DX to 0FFFFh if the sign
bit (bit 15) of AX is set; if bit 15 of AX is not
set, DX will be set to 0.
See Also: CBW DIV IDIV
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson