English
Language : 

HT47R10A-1 Datasheet, PDF (36/43 Pages) Holtek Semiconductor Inc – R-F Type 8-Bit MCU
RLC [m]
Description
Operation
Affected flag(s)
RLCA [m]
Description
Operation
Affected flag(s)
RR [m]
Description
Operation
Affected flag(s)
RRA [m]
Description
Operation
Affected flag(s)
RRC [m]
Description
Operation
Affected flag(s)
Rev. 1.10
HT47R10A-1/HT47C10-1
Rotate data memory left through carry
The contents of the specified data memory and the carry flag are rotated 1 bit left. Bit 7 re-
places the carry bit; the original carry flag is rotated into the bit 0 position.
[m].(i+1) ¬ [m].i; [m].i:bit i of the data memory (i=0~6)
[m].0 ¬ C
C ¬ [m].7
TO
PDF
OV
Z
AC
C
¾
¾
¾
¾
¾
Ö
Rotate left through carry and place result in the accumulator
Data in the specified data memory and the carry flag are rotated 1 bit left. Bit 7 replaces the
carry bit and the original carry flag is rotated into bit 0 position. The rotated result is stored
in the accumulator but the contents of the data memory remain unchanged.
ACC.(i+1) ¬ [m].i; [m].i:bit i of the data memory (i=0~6)
ACC.0 ¬ C
C ¬ [m].7
TO
PDF
OV
Z
AC
C
¾
¾
¾
¾
¾
Ö
Rotate data memory right
The contents of the specified data memory are rotated 1 bit right with bit 0 rotated to bit 7.
[m].i ¬ [m].(i+1); [m].i:bit i of the data memory (i=0~6)
[m].7 ¬ [m].0
TO
PDF
OV
Z
AC
C
¾
¾
¾
¾
¾
¾
Rotate right and place result in the accumulator
Data in the specified data memory is rotated 1 bit right with bit 0 rotated into bit 7, leaving
the rotated result in the accumulator. The contents of the data memory remain unchanged.
ACC.(i) ¬ [m].(i+1); [m].i:bit i of the data memory (i=0~6)
ACC.7 ¬ [m].0
TO
PDF
OV
Z
AC
C
¾
¾
¾
¾
¾
¾
Rotate data memory right through carry
The contents of the specified data memory and the carry flag are together rotated 1 bit
right. Bit 0 replaces the carry bit; the original carry flag is rotated into the bit 7 position.
[m].i ¬ [m].(i+1); [m].i:bit i of the data memory (i=0~6)
[m].7 ¬ C
C ¬ [m].0
TO
PDF
OV
Z
AC
C
¾
¾
¾
¾
¾
Ö
36
September 27, 2007