UPI-41A/41AH/42/42AH USER’S MANUAL
ADDC A,
@
Rr
Add Carry and Data Memory Contents to Accumulator
Opcode:
0 1 1 1
0 0 0 r
The content of the carry bit is added to accumulator location 0. Then the contents of the
standard data memory location addressed by register ‘r’ bits 0 – 7 are added to the accumula-
tor. Carry is affected.
(A)
w
(A)
a
((Rr))
a
(C)
r
e
0 – 1
Example:
ADDMC: MOV R1,
Ý
40
;MOV ‘40’ DEC TO REG 1
ADDC A,
@
R1
;ADD CARRY AND LOCATION 40
;CONTENTS TO ACC
ADDC A,
Ý
data
Add Carry and Immediate Data to Accumulator
Opcode:
0 0 0 1
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. The content of the carry bit is added to accumulator location 0.
Then the specified data is added to the accumulator. Carry is affected.
(A)
w
(A)
a
data
a
(C)
Example:
ADDC A,
Ý
255
;ADD CARRY AND ‘225’ DEC
;TO ACC
ANL A,Rr
Logical AND Accumulator With Register Mask
Opcode:
0 1 0 1
1 r
2
r
1
r
0
Data in the accumulator is logically ANDed with the mask contained in working register ‘r’.
(A)
w
(A) AND (Rr)
r
e
0 – 7
Example:
ANDREG: ANL A,R3
;‘AND’ ACC CONTENTS WITH MASK
;MASK IN REG 3
ANL A,
@
Rr
Logical AND Accumulator With Memory Mask
Opcode:
0 1 0 1
0 0 0 r
Data in the accumulator is logically ANDed with the mask contained in the data memory
location referenced by register ‘r’, bits 0 – 7.
(A)
w
(A) AND ((Rr))
r
e
0 – 1
Example:
ANDDM: MOV R0,
Ý
0FFH
MOV ‘FF’ HEX TO REG 0
ANL A,
Ý
0AFH
;‘AND’ ACC CONTENTS WITH
;MASK IN LOCATION 63
31