Intel MCS48 User Manual page 113

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

Advertisement

INSTRUCTION SET
RR A
Rotate Right Without Carry
111
111
The
contents
of
the
accumulator
are rotated
right
one
bit.
Bit
is
rotated
into
the
bit
7 position
(An)
(A7)-
(An+1)
(A0)
n=0-6
Example:
Assume
accumulator
contains 10110001.
RRNC: RR
A
;NEW
ACC CONTENTS
ARE
11011000
RRC A
Rotate Right
Through
Carry
Example:
110
111
The
contents
of
the
accumulator
are rotated
right
one
bit.
Bit
replaces the carry
bit;
the carry
bit
is
rotated
into
the
bit
7
position.
n=0-6
(An)**
-
(An+1)
(A7)-
-(C)
(C)—
(A
)
Assume
carry
is
not
set
and accumulator
contains
10110001.
RRTC:
RRC
A
;CARRY
IS
SET
AND ACC
;CONTAINS
01011000
SEL
ANO
Select
Analog
Input
Zero
(8022 Only)
100
1
010
1
SEL AN1
Select
Analog
Input
One
(8022 Only)
1000
10
1
One
of
the
two
analog
inputs
to
the
A/D
converter
is
selected.
The
conversion process
is
started.
Restarting a
sequence
deletes the
sequence
in
progress.
4-31

Advertisement

Table of Contents
loading

Table of Contents