Atari Logo
Atari Computer

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

Assembler

Previous Next TOC

NAME NEGX -- Negate with extend
SYNOPSIS
NEGX<ea>
Size = (Byte, Word, Long)
FUNCTION Perform an operation similar to a NEG, with the exception that the operand and the extend bit are both subtracted from zero. The result then is being placed in the given <ea>.
As with ADDX, SUBX, ABCD, SBCD, and NBCD, it can be useful to set the zero flag before performing this operation so that multi precision operations can be tested for zero.
FORMAT
1514131211109876543210
01000000SIZEMODEREGISTER
 <ea>
SIZE
00->Byte.
01->Word.
10->Long.
REGISTER <ea> specifies destination operand, addressing modes allowed are:
Addressing ModeModeRegister
Dn000No reg. Dn
An--
(An)010No reg. An
(An)+011No reg. An
-(An)100No reg. An
(d16,An)101No reg. An
(d8,An,Xi)110No reg. An
(bd,An,Xi)110No reg. An
([bd,An,Xi]od)110No reg. An
([bd,An],Xi,od)110No reg. An
Addressing ModeModeRegister
Abs.W111000
>Abs.L111001
(d16,PC)--
(d8,PC,Xi)--
(bd,PC,Xi)--
([bd,PC,Xi],od)--
([bd,PC],Xi,od)--
#data--
RESULT
X-Set the same as the carry bit.
N-Set if the result is negative, otherwise cleared.
Z-Cleared if the result is non-zero, otherwise unchanged.
V-Set if an overflow is generated, cleared otherwise.
C-Set if a borrow is generated, otherwise 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