Z8 Microcontrollers
Instruction Descriptions and Formats ZiLOG
12-60 UM001601-0803
RRC
ROTATE RIGHT THROUGH CARRY
Example:
If the contents of Register C6H are DDH (11011101B) and the C Flag is reset, the statement:
RRC C6H
Op Code: C0 C6
leaves the value 6EH (01101110B) in register C6H. The C and V Flags are set, and the Z and S Flags are cleared.
Example:
If the contents of Register 2C are EDH, the contents of Register EDH is 00H (00000000B), and the C Flag is reset,
the statement:
RRC @2CH
Op Code: C1 2C
leaves the value 02H (00000010B) in Register EDH. The C, Z, S, and V Flags are reset.