<< Previous | Next >>

JP cx,mn     Jump     Rabbit 4000/5000 Instruction

Opcode
Instruction
Operation
-- JP cx,mn if {cx} PC = mn
A2 n m JP GT,mn if {GT} PC = mn
B2 n m JP LT,mn if {LT} PC = mn
AA n m JP GTU,mn if {GTU} PC = mn
BA n m JP V,mn if {V} PC = mn

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 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 cx is true then PC is loaded with the 16-bit constant mn. If the condition is false then PC increments normally.

Condition Code
Flag Bit Value
Description
GT
(Z or (S xor V))=0
True when Z is 0 and L/V and S are either both 1 or both 0.
LT
(S xor V)=1
True when either S is 1 or L/V is 1.
GTU
((C=0) and (Z=0))=1
True when C and Z are both 0.
V
L/V=1
True when the L/V flag is set: there is overflow.


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