Atari Logo
Atari Computer

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

Assembler

Previous Next TOC

NAME CMPI -- Compare immediate
SYNOPSIS
CMPI#<data>,<ea>
Size = (Byte, Word, Long)
FUNCTION Subtracts the source operand from the destination operand and sets the condition codes according to the result. The destination is NOT changed. The size of the immediate data matches the operation size.
FORMAT
 <ea>
1514131211109876543210
00001100SIZEMODEREGISTER
16 BITS DATA8 BITS DATA
32 BITS DATA
SIZE
00->one Byte operation
01->one Word operation
10->one Long operation
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)111010
(d8,PC,Xi)111011
(bd,PC,Xi)111011
([bd,PC,Xi],od)111011
([bd,PC],Xi,od)111011
#data--
RESULT
X-Not affected
N-Set if the result is negative. Cleared otherwise.
Z-Set if the result is zero. Cleared otherwise.
V-Set if an overflow occours. Cleared otherwise.
C-Set if a borrow occours. Cleared otherwise.


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