Z
ILOG
JP
JUMP
JP [cc,]dst
Operation:
if (cc is TRUE) then begin
if (XM) then begin
PC(31-0)
end
else begin
PC(15-0)
end
end
A conditional jump transfers program control to the destination address if the setting of a
selected flag satisfies the condition code "cc" specified in the instruction; an unconditional
jump always transfers control to the destination address. If the jump is taken, the Program
Counter (PC) is loaded with the destination address; otherwise the instruction following the
Jump instruction is executed.
Each of the Zero, Carry, Sign, and Overflow flags can be individually tested and a jump
performed conditionally on the setting of the flag.
When using DA mode with the JP instruction, the operand is not enclosed in parentheses.
Flags:
S:
Unaffected
Z:
Unaffected
H:
Unaffected
V:
Unaffected
N:
Unaffected
C:
Unaffected
Addressing
Mode
Syntax
IR:
JP (HL)
JP (XY)
DA:
JP CC,addr
JP addr
Field Encodings: y: 0 for IX, 1 for IY
cc: 000 for NZ, 001 for Z, 010 for NC, 011 for C, 100 for PO/NV, 101 for PE/V, 110 for
P/NS,111 for M/S
5-80
dst = IR, DA
←
dst(31-0)
←
dst(15-0)
Instruction Format
11101001
11y11101 11101001
11-cc010 -a(low)- -a(high)
11000011 -a(low)- -a(high)
Execute
Time
Note
2
X
2
X
2
I, X
2
I, X
Z380
™
U
'
M
SER
S
ANUAL
DC-8297-03
Need help?
Do you have a question about the Z80380 and is the answer not in the manual?
Questions and answers