x86 Assembly Language Reference Manual

Convert Word to Long (cwtl)

cwtl
Operation

sign-extend AX -> EAX

Description

cwtl converts the signed word in AX to a signed long in EAX by extending the most-significant bit (sign bit) of AX into two most-significant bytes of EAX.

Example
cwtl