Holtek HT827A0 Manual page 41

8-bit microcontroller with voice rom
Table of Contents

Advertisement

RR [m]
Rotate data memory to the right
Description
The contents of the specified data memory are rotated 1-bit to the right with
bit 0 rotated to bit 7.
Operation
[m].i ¬ [m].(i+1); [m].i:bit i of the data memory (i=0~6)
[m].7 ¬ [m].0
Affected flag(s)
TC2
¾
RRA [m]
Rotate to the right - then place result in the accumulator
Description
Data in the specified data memory are rotated 1-bit to the right with bit 0 ro-
tated to bit 7, leaving the rotation result in the accumulator. The contents of
the data memory remain unchanged.
Operation
ACC.(i) ¬ [m].(i+1); [m].i:bit i of the data memory (i=0~6)
ACC.7 ¬ [m].0
Affected flag(s)
TC2
¾
RRC [m]
Rotate data memory to the right through carry
Description
The contents of the specified data memory and carry flag are rotated 1-bit to
the right. Bit 0 replaces the carry bit; the original carry flag is rotated to the
bit 7 position.
Operation
[m].i ¬ [m].(i+1); [m].i:bit i of the data memory (i=0~6)
[m].7 ¬ C
C ¬ [m].0
Affected flag(s)
TC2
¾
TC1
TO
PD
OV
¾
¾
¾
¾
TC1
TO
PD
OV
¾
¾
¾
¾
TC1
TO
PD
OV
¾
¾
¾
¾
41
HT827A0
Z
AC
C
¾
¾
¾
Z
AC
C
¾
¾
¾
Z
AC
C
¾
¾
Ö
March 15, 2000

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT827A0 and is the answer not in the manual?

Questions and answers

Table of Contents