Intel MCS48 User Manual page 91

Family of single chip microcomputers
Hide thumbs Also See for MCS48:
Table of Contents

Advertisement

INSTRUCTION SET
ADD
A,R
r
Add
Register
Contents
to
Accumulator
110
1
r
r r
The
contents
of register
'r'
are
added
to
the
accumulator. Carry
is
affected.
(
A)^-(A)
+
(Rr)
ADDREG:
ADD
A,R6
r=0-7
Example:
ADD
A,@R
r
Add
Data
Memory
Contents
to
Accumulator
;ADD
REG
6
CONTENTS
;TO
ACC
110
00
r
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))
Example:
ADDM:
MOV
R0, #01
FH
ADD
A,
@R0
r=0-1
MOVE'IF'
HEX TO REG
ADD
VALUE OF LOCATION
31
TO
ACC
ADD
A,#data
Add
Immediate Data
to
Accumulator
00 00
11
d7ded
5
d4
d3d2d-|do
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
111
1
r
r r
The
content
of
the carry
bit
is
added
to
accumulator
location
and
the carry
bit
cleared.
The
contents
of register
Y
are
then
added
to
the
accumulator.
Carry
is
affected.
(A)-»-(A)+(Rr)+(C)
Example:
ADDRGC:
ADDC
A,R4
r=0-7
;ADD
CARRY AND REG
4
;CONTENTS
TO ACC
Mnemonics
copyright
Intel
Corporation
1976.
*0-6
for
8039/8049
4-9

Advertisement

Table of Contents
loading

Table of Contents