INSTRUCTION SET

ANL A,#data Logical AND Accumulator With Immediate Mask

I0 1 0 1 I0 0 1 1 I 1d7 d6 ds d4 1d3 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 1d7 d6 ds d4 1d3 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 Id7 d6 ds d4 Id3 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

Page 84
Image 84
Intel mcs-48 ANL A,#data Logical and Accumulator With Immediate Mask, Anld Pp,A Logical and Port 4-7 With Accumulator Mask