<< Previous | Next >>

LJP x,mn     Long Jump     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
C7 n m x LJP x,mn XPC = x
PC = mn

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
10
n/a
n/a
Rabbit 5000
10
8
6

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

Description

This instruction is similar to the "JP mn" instruction in that it transfers program execution to the memory location specified by the 16-bit constant, mn. LJP is special in that it allows a jump to be made to a computed address in XMEM. Note that the value of XPC and consequently the address space defined by the XPC is dynamically changed with the LJP instructions.

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

See Also: SJP label


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