x86 Assembly Language Reference Manual

Convert Signed Long to Signed Double Long (cltd)

cltd
Operation

sign-extend EAX -> EDX:EAX

Description

cltd converts the signed long in EAX to a signed double long in EDX:EAX by extending the most-significant bit (sign bit) of EAX into all bits of EDX.

Example
cltd