Intel MCS48 User Manual page 92

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

Advertisement

INSTRUCTION SET
ADDC
A,@R
r
Add
Carry
and
Data
Memory
Contents
to
Accumulator
111
00
r
The
content
of
the carry
bit
is
added
to
accumulator
location
and
the carry
bit
cleared.
Then
the
contents
of
the resident data
memory
location
addressed by
register
T'
bits
0-5*are
added
to
the
accumulator.
Carry
is
affected.
(A)*«-(A)+((Rr))+(C)
r=0-1
Example:
ADDMC:
MOV
R1,#40
ADDC
A,@R1
MOVE
'40'
DEC TO REG
1
ADD CARRY AND
LOCATION
40
CONTENTS TO ACC
ADDC
A,#data
Add
Carry
and
Immediate Data
to
Accumulator
00
1
00
11
d7d6d5d4
d3 62
di
do
This
is
a 2-cycle
instruction.
The
content
of
the
carry
bit
is
added
to
accumulator
location
and
the carry
bit
cleared.
Then
the specified data
is
added
to
the
accumulator. Carry
is
affected.
(A)-*-
(A)+data+(C)
ADDC
A,#225
;ADD
CARRY AND
'225'
DEC
;TO
ACC
Example:
ANL
A,R
r
Logical
AND
Accumulator With
Register
Mask
0101
1
r
r r
Data
in
the
accumulator
is
logically
ANDed
with the
mask
contained
in
working
register
'r'.
(A)-«-
(A)
AND
(Rr)
ANDREG: ANL
A.R3
r=0-7
Example
ANL
A,@R
r
Logical
AND
Accumulator
With
Memory Mask
;'AND'
ACC CONTENTS
WITH
MASK
;IN
REG
3
10
1
00
r
Data
in
the
accumulator
is
logically
ANDed
with the
mask
contained
in
the data
memory
location
referenced
by
register
'r\
bits
0-5?
(A)-*- (A)
AND
((Rr))
r=0-1
Example:
ANDDM:
MOV
R0,#03FH
ANL
A,
@R0
MOVE
'3F'
HEX
TO REG
'AND'
ACC CONTENTS
WITH
MASK
IN
LOCATION
63
Mnemonics
copyright
Intel
Corporation
1976.
*0-6
for
8039/8049
4-10

Advertisement

Table of Contents
loading

Table of Contents