<< Previous | Next >>

> JP cx,mn Jump Rabbit 4000 Instruction

> Opcode | Instruction | Clocks | Operation
> -- | `JP` cx,mn | `7 (2,2,2,1)` | `if {`cx`} PC =` mn
> A2 n m | JP GT,mn | 7 (2,2,2,1) | if {GT} PC = mn
> B2 n m | JP LT,mn | 7 (2,2,2,1) | if {LT} PC = mn
> AA n m | JP GTU,mn | 7 (2,2,2,1) | if {GTU} PC = mn
> BA n m | JP V,mn | 7 (2,2,2,1) | if {V} PC = mn

> 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.

<< Previous | Next >>