Intel MCS48 User Manual page 95

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

Advertisement

INSTRUCTION SET
CLR A
Clear
Accumulator
00 10
111
The
contents
of
the
accumulator
are cleared
to zero.
A^-0
CLR C
Clear Carry
Bit
100
1
111
During normal
program
execution, the carry
bit
can
be
set to
one
by
the
ADD,
ADDC,
RLC,
CPL
C,
RRC,
and
DAA
instructions.
This
instruction resets
the carry
bit
to zero.
C-«-0
CLRF1
Clear Flag
1
(Not
in
8021, 8022)
10 10
10
1
Flag
1
is
cleared
to zero.
(F1)—
CLR
F0
Clear Flag
(Not
in
8021
,
8022)
1000
10
1
Flag
is
cleared
to zero.
(F0)^0
CPL A
Complement
Accumulator
00
11
111
The
contents
of
the
accumulator
are
complemented.
This
is
strictly
a one's
complement. Each one
is
changed
to
zero
and
vice-versa.
(A)-«-
NOT
(A)
Example:
Assume
accumulator
contains 01101010.
CPLA:
CPL A
;ACC
CONTENTS
ARE COMPLE-
MENTED
TO
10010101
CPL C
Complement
Carry
Bit
10 10
111
The
setting of
the carry
bit
is
complemented; one
is
changed
to zero,
and
zero
is
changed
to
one.
(C)^NOT
(C)
Example:
Set
C
to
one; current
setting
is
unknown.
CTOLCLRC
;C
IS
CLEARED TO ZERO
CPL C
;C
IS
SET
TO ONE
Mnemonics
copyright
Intel
Corporation
1976.
.
.-
4-13

Advertisement

Table of Contents
loading

Table of Contents