<< Previous | Next >>

JRE label     Jump Relative     Rabbit 4000 Instruction
Opcode
Instruction
Clocks
Operation

98 eelow eehigh

JRE label
JRE mn1

7 (2,2,2,1)

PC = PC2 + ee


1 The 16-bit constant mn is the destination logical address of the jump. 2 The value of PC after the instruction fetch.
Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
-
-
-
-

Description

This instruction transfers control to the specifed address. The address is specified by a label or logical address. The assembler translates the label or logical address "mn" to a 16-bit signed displacement value, "ee".

The displacement value "ee" is relative to the address of the first byte of the instruction following JRE. This fact is because the processor calculates the new PC value after it increments the PC for the instruction fetch of JRE.

The relative jump has a range of [-32768, 32767] from the address of the first byte of the instruction following the JRE instruction.


<< Previous | Next >>