Atari Logo
Atari Computer

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

Assembler

Previous Next TOC

NAME CHK2 -- Check register against upper and lower bounds (68020+)
SYNOPSIS
CHK2<ea>,Rn
Size = (Byte, Word, Long)
FUNCTION <ea> indicates memory area of two bounds: in 1st memory position, lower bound, in 2nd memory position, upper bound. Those two values are adjacent in memory.
For signed comparisons, the lowest arithmetic value, expressed as a two complement integer, have to be the lower bound.

If Rn is a data register Dn and if size of operation is 8 or 16 bits, only the 8 or 16 bits of low weight of Dn and bounds are taken in count.
In opposite, if Rn is an address register An, it must be extension of bounds sign and 32 bits of An are taken care.

If Rn is located out of 2 bounds, a CHK instruction, vector number 6, occurs.

FORMAT
 <ea>
1514131211109876543210
00000SIZE011MODEREGISTER
D/AREGISTER100000000000
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