Table C-10. Call and Return Group
Flags
OP-Code
No.
No.
No.
Symbolic
P
of
of M
of T
Mnemonic
Operation
C
Z V S N H 76 543 210
Bytes
Cycles
States
Comments
CALL no
(SP-1)-PCH
•
•
001 101
3
5
17
(SP-2)-PC L
n
PC--nn
n
CALL cc, on
If condition
I 1 cc 100
3
3
10
If cc is false
cc is false
n
continue,
otherwise
n
3
5
17
If cc is true
same as
CALL nn
RET
PCL-(SP)
I1 001 001
l
3
10
PCH-( SP+1)
RET cc
If condition
11 cc 000
1
1
5
If cc is false
cc is false
wntrwise
otherwise
1
3
11
If cc is true
same as
cc Condition
RET
000
NZ
non zero
001
Z zero
RETI
Return from
•
101 101
2
4
14
010
011
NC non carry
C carr
interrupt
01 001 l01
y
parity odd
REIN
Return from
11 101 101
2
4
14
] 01
PE parity even
non maskable
interrupt
01 000 101
110
111
P sign positive
M sign negative
RST p
(SP-l)--PCH
11 t 111
1
3
11
(SP-2)-PCL
PCH -0
PCL--P
P
000
OOH
001
08H
010
10H
011
18H
100
20H
101
28H
110
30H
111
38H
Flag Notation : a = flag not affected , 0 = flag reset , I = flag set , X = flag is unknown
t = flag is affected according to the result of the operation.
293
Need help?
Do you have a question about the Z80 and is the answer not in the manual?
Questions and answers