Operation:
Destination Sign-Extended -->; Destination
Compatibility: 68000 Family
Assembler Syntax:
EXT.W Dn
extends byte to word
EXT.L Dn
extends word to long word
Attributes: Size = (Word, Long)
Description: Extends a byte in a data register to a word or a
word in a data register to a long word, by replicating the
sign bit to the left. If the operation extends a byte to a word,
bit [7] of the designated data register is copied to bits [15:8]
of that data register. If the operation exntends a word to a
long word, bit [15] of the designated data register is copied
to bits [31:16] of the data register.
Condition Codes:
\c32200
X Not affected.
N Set if the result is negative. Cleared otherwise.
Z Set if the result is zero. Cleared otherwise.
V Always cleared.
C Always cleared.
Instruction Format:
\i1-+--+--3Opmode,---3Reg,
Instruction Fields:
Opmode field:
010 -- Sign extend low-order byte of data register
to word.
011 -- Sign extend low-order word of data register
to long word.
Register field -- Specifies the data register to be
sign-extended.
Related Instructions:
EXTB,447
.445447