ZiLOG Z80-CPU Technical Manual page 56

Table of Contents

Advertisement

Flags
Op-Code
~
No.
Symbolic
of
Mnemonic
Operation
C
Z
V S N H 76 543 210
Bytes
RLCA
~
t
• • •
0 0 00 000 111
1
A
RLA
~
t
• •
0 0 00 010 111
1
A
RRCA
~
t
• • •
0 0 00 001 111
1
A
RRA
~
t
0 0 00 011 111
1
A
RLCr
t
t
P t
0 0 11 001 011
2
0010001
r
RLC (HL)
t
t P t
0 0 11 001 011
2
0010001110
RLC (IX+d)
~
t
t P t
0 0 11 011 101
4
r.
(Ht), (lX+d), (IYi-d)
11 001 011
~
d
-+
0010001
1
10
RLC (IY+d)
t
t
P t
0 0 11 111 101
4
11 001 OIl
...
d
-+
0010001110
RLm
L&=E3J
t
t P t
0 0
10101
mO=l,(HL).(IX+d), (lY+d)
RRCm
~La
t
t P t
0 0
10011
m
~r.(HL),
(lX+d), (IY+d)
RRm
~
t
t P t
0 0
[QTIJ
m:=: r, (ilL), (IX+d). (IY+d)
SLAm
~o
t
t P t
0 0
11001
m =:: r, (HL),(lX+d), (IY+d)
SRAm
~
t
t
p
t
0 0
[}QI]
m
==
r, (ilL), (IX+d), (IY+d)
SRLm
o~
t
t P t
0 0
[ill]
m =r,(HL),(IX+d), (lV+d)
RLD
A~(HL)
t
P t
0 0 11 101 101
2
01 101 111
A~(HL)
RRD
t
p
t 0 0 11 101 101
2
01 100 111
Flag Notation: • =;'ilag not
affe~ted,
0
=
flag reset, 1
=
flag set, X = flag is unknown,
t
=
flag is affected according to the result of the operation.
ROTATE AND SHIFT GROUP
TABLE
7.0-7
50
No.
No.
ofM
ofT
Cycles
States
Comments
1
4
Rotate left circular
accumulator
1
4
Rotate left
accumulator
1
4
Rotate right circular
accumulator
1
4
Rotate right
accumulator
2
8
Rotate left circular
register r
4
15
r
R£g.
000
B
6
23
001
C
010
D
011
E
100
H
101
L
6
23
111
A
Instruction format a nd
states are as shown
for RLC,m. To form
new OP·code replace
[QQQ)of RLC,m with
shown code
5
18
Rotate digit left and
right between the
accumulator
and location (HL).
5
18
The content of the
upper half of the
accumulator is
unaffected

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Z80-CPU and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Z80a-cpu

Table of Contents