UPI-41A/41AH/42/42AH USER’S MANUAL
ORL A,
@
Rr
Logical OR Accumulator With Memory Mask
Opcode:
0 1 0 0
0 0 0 r
Data in the accumulator is logically ORed with the mask contained in the data memory
location referenced by register ‘r’, bits 0 – 7.
(A)
w
(A) OR ((Rr))
r
e
0 – 1
Example:
ORDM: MOVE R0,
Ý
3FH
;MOVE ‘3F’ HEX TO REG 0
ORL A,
@
R0
;‘OR’ ACC CONTENTS WITH MASK
;IN LOCATION 63
ORL A,
Ý
Data
Logical OR Accumulator With Immediate Mask
Opcode:
0 1 0 0
0 0 1 1
#
d
7
d
6
d
5
d
4
d
3
d
2
d
1
d
0
This is a 2-cycle instruction. Data in the accumulator is logically ORed with an immediately-
specified mask.
(A)
w
(A) OR data
Example:
ORID: ORL A,
Ý
‘X’
;‘OR’ ACC CONTENTS WITH MASK
;01011000 (ASCII VALUE OF ‘X’)
ORL Pp,
Ý
data
Logical OR Port 1 – 2 With Immediate Mask
Opcode:
1 0 0 0
1 0 p
1
p
0
#
d
7
d
6
d
5
d
4
d
3
d
2
d
1
d
0
This is a 2-cycle instruction. Data on port ‘p’ is logically ORed with an immediately-specified
mask.
(Pp)
w
(Pp) OR data
p
e
1 – 2 (see OUTL instruction)
Example:
ORP1: ORL P1,
Ý
OFH
;‘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
Opcode:
1 0 0 0
1 1 p
1
p
0
This is a 2-cycle instruction. Data on 8243 port ‘p’ is logically ORed with the digit mask
contained in accumulator bits 0 – 3,
(Pp) (Pp) OR (A
0–3
)
p
e
4 – 7 (See MOVD instruction)
Example:
ORP7; ORLD P7,A
;‘OR’ PORT 7 CONTENTS
;WITH ACC BITS 0 – 3
OUT DBB,A
Output Accumulator Contents to Data Bus Buffer
Opcode:
0 0 0 0
0 0 1 0
Contents of the accumulator are transferred to the Data Bus Buffer Output register and the
Output Buffer Full (OBF) flag is set to one.
(DBB)
w
(A)
OBF
w
1
Example:
OUTDBB: OUT DBB,A
;OUTPUT THE CONTENTS OF
;THE ACC TO DBBOUT
46