EXT Instruction



The instruction EXT (Sign EXTend) makes a sign extension, byte to a word or a word to a longword. If you extend a byte to a word, bit 7 is copied to bit 15-8. If you extend a word to a longword, bit 15 is copied to bit 31-16.

ADDRESS METHODS: Dn

DATA LENGTH: Word, Longword
FLAGS: X - U
N - S
Z - S
C - 0
V - 0

SYNTAX: EXT Dn

EXAMPLE CODE:   

   EXT.L  D0    if D0 contained 0000FFF5, it would change D0 to FFFFFFF5