English
Language : 

HT47C20 Datasheet, PDF (49/56 Pages) Holtek Semiconductor Inc – 8-Bit Microcontroller
RRA [m]
Description
Operation
Affected flag(s)
RRC [m]
Description
Operation
Affected flag(s)
RRCA [m]
Description
Operation
Affected flag(s)
HT47C20
Rotate right and place result in accumulator
Data in the specified data memory is rotated right one bit with bit 0 ro-
tated into bit 7, leaving the rotated result in the accumulator. The con-
tents 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
TC2 TC1 TO PD OV Z AC C
¾ ¾¾¾¾¾¾¾
Rotate data memory right through carry
The contents of the specified data memory and the carry flag are together
rotated right one bit. 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
TC2 TC1 TO PD OV Z AC C
¾ ¾¾¾¾¾¾ Ö
Rotate right through carry and place result in accumulator
Data of the specified data memory and the carry flag are together rotated
right one bit. Bit 0 replaces the carry bit and the original carry flag is ro-
tated into the bit 7 position. The rotated result is stored in the accumula-
tor. 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 ¬ C
C ¬ [m].0
TC2 TC1 TO PD OV Z AC C
¾ ¾¾¾¾¾¾ Ö
49
January 18, 2000