Atari Logo
Atari Computer

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

Assembler

Previous Next TOC

NAME AND -- Logical AND
SYNOPSIS
AND<ea>,Dn
ANDDn,<ea>
Size = Byte, Word, Long
FUNCTION Performs a bit-wise AND operation with the source operand and the destination operand and stores the result in the destination. The size of the operation may be specified as byte, word, or long. The contents of an address register may not be used as an operand.
FORMAT
1514131211109876543210
1100REGISTEROP-MODEMODEREGISTER
 <ea>
OP-MODE Long
ByteWord 
000001010(Dn)AND(<ea>)-> Dn
100101110(<ea>)AND(Dn)-> <ea>
REGISTER One of the 8 datas registers

If <ea> is source, allowed addressing modes 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
#data111100

If <ea> is destination, allowed addressing modes are:
Addressing ModeModeRegister
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--
AND between two datas registers is allowed if you consider the syntax where Dn is at destination's place.
If you use this instruction with an immediate data, it does the same as instruction ANDI.

RESULT
X-Not affected
N-Set if the most-significant bit of the result was set.
Cleared otherwise.
Z-Set if the result was 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