Table of Contents        Previous topic       Next topic       


EXT    Sign Extend

Sign Extended Destination -> Destination

Assembler Syntax:EXT.W Dnextend byte to word
EXT.L Dnextend word to long word
Size:    Word, Long

Extends a byte in a data register to a word or a long word, or a word in a data register to a long word, by replicating the sign bit to the left.

Condition Codes:

N    Set if result negative, else cleared
Z    Set if result zero, else cleared
V    Always cleared
C    Always cleared
X    Not affected