IA-32 Assembly Language Reference Manual

Convert Signed Word to Signed Double Word (cwtd)

cwtd
Operation

sign-extend AX -> DX:AX

Description

cwtd converts the signed word in AX to a signed double word in DX:AX by extending the most-significant bit (sign bit) of AX into all bits of DX.

Example
cwtd