Z-80 Instructions: Part I.


JUMP GROUP

Mnemonic
Symbolic
Operation
Flags OP-Code No. of
Bytes
No. of
M Cycles
No. of
T Cycles

Comments
C Z P/V S N H 76 543 210
JP nn PC ← nn 11 000 011
← n →
← n →
3 3 10  
JP cc,nn If condition cc
is true PC ← nn,
otherwise
contiue
11  cc  010
← n →
← n →
3 3 10  cc    Condition
 000   NZ non zero
 001   Z   zero
 010   NC non carry
 011   C   carry
 100   PO parity odd
 101   PE parity even
 110   P   sign positive
 111   M   sign negative
JR e PC ← PC + e 00 011 000
← e-2 →
2 3 12  
JR C,e If C = 0,
continue
If C = 1,
PC ← PC + e
00 111 000
← e-2 →
2
2
2
3
7
12
If condition not met
If condition is met
JR NC,e If C = 1,
continue
If C = 0,
PC ← PC + e
00 110 000
← e-2 →
2
2
2
3
7
12
If condition not met
If condition is met
JR Z,e If Z = 0,
continue
If Z = 1,
PC ← PC + e
00 101 000
← e-2 →
2
2
2
3
7
12
If condition not met
If condition is met
JR NZ,e If Z = 1,
continue
If Z = 0,
PC ← PC + e
00 100 000
← e-2 →
2
2
2
3
7
12
If condition not met
If condition is met
JP (HL) PC ← HL 11 101 001 1 1 4  
JP (IX) PC ← IX 11 011 101
11 101 001
2 2 8  
JP (IY) PC ← IY 11 111 101
11 101 001
2 2 8  
DJNZ e B ← B - 1
If B = 0,
continue
If B ≠ 0,
PC ← PC + e
00 010 000
← e-2 →
2
2
2
3
8
13
If B = 0
If B ≠ 0

 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, 1 = flag set, X = flag is unknown, 
   ↕ = flag is affected according to the result of the operation.