Table C-7. Rotate and Shift Group
Flags
OpCode
No.
No.
No.
Symbolic
/
of
of M
of T
Mnemonic
ration
O O pe
C Z V S
N H 76 543 210
Bytes
Cycles
States
Comments
RLCA
^^
^^
^io
•
•
0 0
00 000 Ill
1
1
4
Rotate left circular
L` J^^^.^"
accumulator
RLA
"-^"IrL_^'
t •
•
0 0
00 010 111
1
1
4
Rotate left
accumulator
RRCA
`^1_f^L`J'
t •
•
0 0
00 001 111
1
1
4
Rotate right circular
"
accumulator
RRA
`.^, ^^"^1:^-
i •
•
0 0
00 Ott Ill
1
1
4
Rotate right
accumulator
RLC r
t 1
P 1
0 0
11 001 Ott
2
2
8
Rotate left circular
00 000 r
register r
RLC (HL)
I I
P 1
0 0
11 001 Oil
2
4
15
r Reg.
00 000 110
000
B
RLC (IX+d)
t 1
P 1
0 0
11 O11 101
4
6
23
001 C
O
ixu. nx a^, UY°'
11 001 O11
Ott E E
d
100
H
00 000 110
1011 L
RLC(IY+d)
t 1
P I
0 0
Il 111 101
4
6
23
111 A
11 001 Ott
a
00 000 Ilo
RL s
11
P 1
0 0
010
Instruction format and
s s u.ix m. iv e^
states are as shown
for RLC,s. To form
new ORcode replace
RRC s
1 I
P I
0 0
001
000 of RLC,s with
shown code
RR s
11
P 1
0 0
011
SLA s
I 1
P I
0 0
100
SRA s
ES^
1 I
P 1
0 0
101
SRL s
I t
P 1
0 0
111
RLD
xc
•
I
P 1
0
0
11 101 101
2
5
18
Rotate digit left and
01 101 111
right between the
accumulator
and location (HL).
RRD
"ac
I
P t
0 0
11 101 101
2
5
18
The content of the
01 100 111
upper half of the
accumulator is
unaffected
Flag Notation : = flag not affected , 0 = flag reset , l = flag set , X = flag is unknown,
I = flag is affected according to the result of the operation.
290
Need help?
Do you have a question about the Z80 and is the answer not in the manual?
Questions and answers