RR r
Rotate Right
Operation
C
Description
The r operand is any of the 8-bit CPU registers A, B, C, D, E, H, or L. The CPU manipu-
lates the contents of the r operand by rotating them right one bit position. The CPU next
copies the contents of bit 0 into the Carry Flag and copies the previous contents of the
Carry Flag into bit 7 of the r operand.
Condition Bits Affected
S
Z
H
P/V
N
C
Attributes
Mnemonic Operand
RR
identifies the A, B, C, D, E, H, or L register and is assembled into one of the opcodes
jj
indicated in
Table 90. Register and
Register jj
A
B
UM007714-0908
7
r
Set if result is negative; reset otherwise.
Set if result is 0; reset otherwise.
Reset.
Set if parity is even; reset otherwise.
Reset.
Data from bit 0 of the source.
ADL Mode Cycle Opcode (hex)
X
r
Table
90.
Opcodes for RR r Instruction (hex)
jj
1F
18
0
2
CB, kk
®
eZ80
CPU
User Manual
316
CPU Instruction Set
Need help?
Do you have a question about the eZ80 and is the answer not in the manual?
Questions and answers