Atari Logo
Atari Computer

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

Assembler

Previous Next TOC

NAME
CMP2 -- Compare register against upper and lower bounds(68020+)
SYNOPSIS
CMP2<ea>,Rn
FUNCTION Used to compare value of Rn (Dn or An) with two lower and upper bounds, which are stored in memory, at address given by <ea> (in two adjacent areas).
Lower bound have to be stored before upper bound. Flags are set following to the result of comparison.

If Rn is a data register Dn, and if operation is made on 8 or 16 bits, only the 8 or 16 bits of Dn are taken in count. In opposite, in the case of Rn as an address register and if a 16 bits operation is granted, the 32 bits of An are compared to bounds which are, them, extended on 32 bits by their signs.

FORMAT
 <ea>
1514131211109876543210
00000SIZE011MODEREGISTER
D/AREGISTER000000000000
REGISTER Register specifies the register Rn which contains the value to test.
If D/A = 0:Rn = Dn
If D/A = 1:Rn = An
<ea> specifies bounds, addressing modes allowed are:
Addressing ModeModeRegister
Dn--
An--
(An)010No reg. An
(An)+--
-(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--
SIZE
00->one Byte operation
01->one Word operation
10->one Long operation
RESULT
X-Not affected
N-Undefined.
Z-Set if Rn is equal to one of the two bounds. Cleared otherwise.
V-Undefined.
C-Set if Rn is out of bounds. 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