IA-32 Assembly Language Reference Manual

Convert Byte to Word (cbtw)

cbtw
Operation

sign-extend AL -> AX

Description

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

Example
cbtw