Intel mcs-48 Microscope & Magnifier User Manual


 
INSTRUCTION SET
ADD A,R
r
Add Register Contents to Accumulator
1011011rrri
The contents
of
register 'r' are added
to
the
accumulator. Carry
is
affected.
(A)
.... (A) + (Rr)
Example: ADDREG: ADD A,R6
r=0-7
;ADD REG 6 CONTENTS
;TO
ACC
ADD
A,@R
r
Add Data Memory Contents
to
Accumulator
101101000ri
The contents
of
the resident data
memory
location
addressed by register 'r' bits 0-5*are added
to
the accumulator. Carry
is
affected.
(A)
..... (A) + ((Rr)) r=0-1
Example: ADDM: MOV
RO,
#01
FH
;MOVE
'1
F'
HEX
TO
REG
0
ADD
A,
@RO
;ADD VALUE OF LOCATION
;31
TO
ACC
ADD A,#data Add Immediate Data
to
Accumulator
1
00
0 0 1 0 0 1
11
I
d7
d6 ds d4 I d3 d2
d1
do I
This is a 2-cycle instruction. The specified data
is added
to
the accumulator. Carry is affected
(A)
....
(A) + data
Example: ADDID:
ADD
A,#ADDER: ;ADD VALUE OF SYMBOL
;'ADDER'
TO
ACC
ADDC
A,R
r
Add Carry and Register Contents
to
Accumulator
1011111rrri
The
content
of
the carry bit is added
to
accumulator
location 0 and the carry bit cleared. The contents
of
register 'r' are then added to the accumulator.
Carry is affected.
(A)
.... (A)+(Rr)+(C) r=0-7
Example: ADDRGC: AD DC A,R4 ;ADD CARRY
AND
REG
4
;CONTENTS
TO
ACC
Mnemonics copyright Intel Corporation 1976.
'0-6
for
8039/8049
4-9