Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->EXT

EXT    Sign Extend
EXTB

Compatibility: 68000, 68010, 68020 and CPU32 families.


Sign Extended Destination -> Destination


Assembler Syntax:EXT.W Dnextend byte to word
EXT.L Dnextend word to long word
1 EXTB.L Dnextend byte to long word
1   68020 and CPU32 only

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