
RLC [m]
Rotate data memory left through carry
Description
The contents of the specified data memory and the carry flag are rotated one
bit left. Bit 7 replaces the carry bit; the original carry flag is rotated into the
bit 0 position.
Operation
[m].(i+1)
[m].0
C
[m].i; [m].i:bit i of the data memory (i=0~6)
C
[m].7
Affected flag(s)
TC2
TC1
TO
PD
OV
Z
AC
C
RLCA [m]
Rotate left through carry and place result in the accumulator
Description
Data in the specified data memory and the carry flag are rotated one bit left.
Bit 7 replaces the carry bit and the original carry flag is rotated into bit 0 po-
sition. The rotated result is stored in the accumulator but the contents of the
data memory remain unchanged.
Operation
ACC.(i+1)
ACC.0
C
[m].i; [m].i:bit i of the data memory (i=0~6)
C
[m].7
Affected flag(s)
TC2
TC1
TO
PD
OV
Z
AC
C
RR [m]
Rotate data memory right
Description
The contents of the specified data memory are rotated one bit right with bit 0
rotated to bit 7.
Operation
[m].i
[m].7
[m].(i+1); [m].i:bit i of the data memory (i=0~6)
[m].0
Affected flag(s)
TC2
TC1
TO
PD
OV
Z
AC
C
HT49R50A
43
November 29, 2000