Table C-9. Jump Group
Flags
OpCode
No.
No.
No.
Symbolic
%
of
of m
of T
Mnemonic
Operation
C
Z
V S N H 76 543 210
Bytes
Cycles
States
Comments
JP nn
PC - nn
000 011
3
3
10
n
cc Condition
JP cc, nn
If condition cc
•
I I cc 010
3
3
10
000 NZ non zero
is true PC -nn,
001 Z zero
otherwise
010 NC non carry
continue
01l C carry
100 PO parity odd
101 PE parity even
110 P sign positive
JR a
PC - PC + e
•
00 01 1 000
2
3
12
1 I I M sign negative
JR C, a
If C = 0,
00 111 000
2
2
7
If condition not met
continue
e-2
If C =
2
3
12
If condition is met
PC PC+e
JR NC, c
IfC = I,
00 110 000
2
2
7
If condition not met
continue
a-2
If C = 0,
2
3
12
If condition is me
PC-PC+e
JR Z, a
If Z 0
00 101 000
2
2
7
It condition not met
continue
e-2
IfZ=1,
2
3
2
Ifcondition is met
PCPC+e
JR NZ, a
If Z 1,
00 100 000
2
2
7
If condition not me
continue
a-2
If Z = 0,
2
3
12
If condition met
PC-PC+e
JP(HL)
PC - HL
II 101 001
1
1
4
JP (IX)
PC - IX
I I Ol 1 101
2
2
8
Il 101 001
JP(IY)
PC-IY
II 111 101
2
2
8
11 101 001
DJNZ,e
B-B-I
00 010 000
2
2
8
1fB=0
If B = 0,
a-2
continue
IfB*0,
2
3
13
IFBS0
PC - PC+e
Notes :
e represents the extension in the relative addressing mode,
e is a signed two's complement number in the range <-126, 129>
e-2 in the op-code provides an effective address of pc +e as PC is
incremented by 2 prior to the addition of e.
Flag Notation : • = flag not affected, 0 = flag reset , I = flag set, X = flag is unknown,
flag is affected according to the result of the operation.
292
Need help?
Do you have a question about the Z80 and is the answer not in the manual?
Questions and answers