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>cbw convert byte to word flags: not altered</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CBW             Convert Byte to Word                 Flags: Not altered

CBW

        Logic   if AL < 80h
                   AH . 0
                else
                   AH . FFh
                endif

    CBW converts the signed byte in the AL register to a signed word
    in AX by extending the most significant bit (the sign bit) of AL
    into all of the bits of AH.

    Note
    The 32-bit form of CBW is CWDE.


    Opcode      Format
    98          CBW


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

See Also: CWDE CWD CDQ IDIV MOVSX

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