Z8 Microcontrollers
Instruction Descriptions and Formats ZiLOG
12-58 UM001601-0803
RR
ROTATE RIGHT
Example:
If the contents of Working Register R6 are 31H (00110001B), the statement:
RR R6
Op Code: E0 E6
leaves the value 98H (10011000) in Working Register R6. The C, V, and S Flags are set, and the Z Flag is cleared.
Example:
If the contents of Register C6 are 31H and the contents of Register 31H are 7EH (01111110B), the statement:
RR @C6
Op Code: E1 C6
leaves the value 4FH (00111111) in Register 31H. The C, Z, V, and S Flags are cleared.