<< Previous | Next >>

JP f,mn     Jump     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
---- JP f,mn if {f} PC = mn
C2 n m JP NZ,mn if {NZ} PC = mn
CA n m JP Z,mn if {Z} PC = mn
D2 n m JP NC,mn if {NC} PC = mn
DA n m JP C,mn if {C} PC = mn
E2 n m JP LZ,mn if {LZ/NV} PC = mn
EA n m JP LO,mn if {LO/V} PC = mn
F2 n m JP P,mn if {P} PC = mn
FA n m JP M,mn if {M} PC = mn

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
7
n/a
n/a
Rabbit 5000
7
5
5

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-

Description

If the condition f is true then PC is loaded with the 16-bit constant mn. If the condition is false then PC increments normally. The condition f is one of the following:
Condition Code
Flag Bit Value
Description
NZ
Z=0
True when Z flag has not been set
Z
Z=1
True when Z flag has been set
NC
C=0
True when C flag has not been set
C
C=1
True when C flag has been set
LZ
L/V=0
True when L/V flag has not been set
LO
L/V=1
True when L/V flag has been set
P
S=0
True when S flag has not been set
M
S=1
True when S flag has been set

This instruction recognizes labels when used in the Dynamic C assembler.


Rabbit Instructions << Previous | Next >> rabbit.com