
Z80 Instruction Set UM008007-0715
260
Z80 CPU
User Manual
JP cc, nn
Operation
IF cc true, PC ← nn
Op Code
JP
Operands
cc, nn
The first n operand in this assembled object code is the low-order byte of a 2-byte memory
address.
Description
If condition cc is true, the instruction loads operand nn to register pair Program Counter
(PC), and the program continues with the instruction beginning at address nn. If condition
cc is false, the Program Counter is incremented as usual, and the program continues with
the next sequential instruction. Condition cc is programmed as one of eight statuses that
correspond to condition bits in the Flag Register (Register F). These eight statuses are
defined in the following table, which specifies the corresponding cc bit fields in the
assembled object code.
cc Condition
Relevant
Flag
000 Non-Zero (NZ) Z
001 Zero (Z) Z
010 No Carry (NC) C
011 Carry (C) C
100 Parity Odd (PO) P/V
101 Parity Even (PE) P/V
110 Sign Positive (P) S
111 Sign Negative (M) S
Comentários a estes Manuais