Atari Logo
Atari Computer

Hauptseite -
Welches System? -
Hardware -
Software -
Emulatoren -
Internet
MausNet
Programmieren
Verweise
Über

Assembler

Previous Next TOC

NAME EXT, EXTB -- Sign extend
SYNOPSIS
EXT.WDnExtend byte to word
EXT.LDnExtend word to long word
EXTB.LDnExtend byte to long word (68020+)
Size = (Word, Long)
FUNCTION Extends a byte to a word, or a word to a long word in a data register by copying the sign bit through the upper bits. If the operation is from byte to word, bit 7 is copied to bits 8 through 15. If the operation is from word to long word, bit 15 is copied to bits 16 through 31. The EXTB copies bit 7 to bits 8 through 31.
FORMAT
1514131211109876543210
0100100OP-MODE000REGISTER
"REGISTER" specifies a data register.
OP-MODE
010->Extending from 8 bits to 16 bits.
011->Extending from 16 bits to 32 bits.
111->Extending from 8 bits to 32 bits.
RESULT
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


Best viewed with any browser English version not yet available.

Änderungen und Irrtümer vorbehalten. Letzte Änderung:
14 September 2001.
Home - Mail an den Webmaster - Impressum