Intel mcs-48 manual 8021

Models: mcs-48

1 478
Download 478 pages 26.88 Kb
Page 101
Image 101

INSTRUCTION SET

ORl BUS,#data logical OR BUS With Immediate Mask (Not in 8021,8022)

11 0 0 0 11 0 0 0 1 1d7 d6 ds d4 1d3 d2 d1 do 1

This is a 2-cycle instruction. Data on the BUS port is logically ORed with an immediately-specified mask. This instruction assumes prior specification of an 'OUTLBUS,A' instruction.

(BUS)-- (BUS) OR data

Example: ORB US: ORL BUS,#HEXMSK ;'OR'BUS CONTENTS WITH

 

;MASK EQUAL VALUE OF SYMBOL

 

;'HEXMSK'

 

ORl Pp, #data logical OR Port 1 or 2 With Immediate Mask (Not in

11 00 0 11 0 P p 1 1d7 d6 ds d4 1d3 d2 d1 dO 1

8021, 8022)

This is a 2-cycle instruction. Data on port 'p'

 

is logically ORed with an immediately-specified mask.

 

(Pp)-- (Pp) OR data

p=1-2

 

Example: ORP1: ORL P1, #OFFH

;'OR'PORT 1 CONTENTS WITH

 

;MASK 'FF'HEX ( SET PORT 1

 

;TO ALL ONES)

 

ORlD Pp,A logical OR Port 4-7 With Accumulator Mask

11000111ppl

This is a 2-cycle instruction. Data on port'p'is logically ORed with the digit mask contained in accumu lator bits 0-3.

(Pp) ... (Pp) OR (AO-3)

p=4-7

Example: ORPT: ORLD P7,A

;'OR'PORT 7 CONTENTS

 

;WITH ACC BITS 0-3

OUTl PO,A Output Accumulator Data to Port 0 (8021, 8022 Only)

11001100001

OUTl BUS,A Output Accumulator Data to BUS (Not in 8021,8022)

100001·00101

This is a 2-cycle instruction. Data residing in the accumulator is transferred (written) to the BUS port and latched. The latched data remains valid until altered by

anotherOUTL instruction. Any other instruction

Does not

requiring use of the BUS port (except INS) destroys the

contents of the BUS latch. This includes expanded

apply for

memory operations (such as the MOVX instruction).

OUTL

Logical operations on BUS data (AND, OR) assume the

PO,A

OUTL BUS,A instruction has been issued previously.

. (BUS) -- (A)

of 8021, 8022

Example: OUTLB!?: OUTL BUS,A

;OUTPUT ACC CONTENTS TO BUS

Mnemonics copyright Intel Corporation 1976.

4-28

Page 101
Image 101
Intel mcs-48 manual 8021