INSTRUCTION SET
ANL A,#data Logical AND Accumulator With Immediate Mask
I 0 1 0 1 I 0 0 1 1 I 1 d7 d6
ds
d4 1 d3 d2
d1
do 1
This is a 2-cycle instruction. Data in the accumulator
is
logically
ANDed with
an
immediately-specified mask.
(A)--
(A) AND data
Examples: ANDID:
ANL
A,#OAFH ;'AND' ACC CONTENTS
;WITH MASK
10101111
ANL
A,#3+X/Y ;'AND' ACC CONTENTS
;WITH
VALUE OF
EXP
;'3+X/Y'
ANL BUS,#data Logical AND BUS With Immediate Mask (Not in 8021, 8022)
11
0 0 1
11
0 0 0 1 1
d7 d6
ds d4 1 d3 d2
d1
do I
This is a 2-cycle instruction. Data on' the BUS port is
logically ANDed with
an
immediately-specified mask. This
instruction assumes
prior
specification
of
an
'OUTL
BUS,
A' instruction.
(BUS)
--
(BUS) AND data
Example: ANDBUS:
ANL
BUS, #MASK ;'AND' BUS CONTENTS
;WITH MASK
EQUAL VALUE
;OF SYMBOL 'MASK'
ANL Pp,#data Logical AND Port 1-2 With Immediate Mask (Not in 8021,8022)
11
00
1
11
0 P P I I
d7
d6 ds d4 I d3 d2
d1
do I
This is a 2-cycle instruction. Data on
port
'p'
is
logically ANDed with
an
immediately-specified mask.
(Pp)--
(Pp) AND data p=1-2
Example: ANDP2:
ANL
P2,#OFOH
;'AND' PORT 2 CONTENTS
;WITH MASK
'FO'
HEX
; (CLEAR P20-23)
ANLD Pp,A Logical AND Port 4-7 With Accumulator Mask
11001111ppl
This is a 2-cycle instruction. Data on
port
'p' is
logically ANDed with the
digit
mask contained in
accumulator bits 0-3.
\
(Pp)--
(Pp) AND
(AO-3)
p=4-7
Mnemonics copyright Intel Corporation 1976.
4-11