Instruction Reference Manual 41
Description
If condition cc is true then the 8-bit signed displacement value e is added to the Program Counter, PC.
Since the instruction takes two increments of the PC to complete, two is subtracted from the displacement
value so that the displacement take place from the instruction opcode.
This instruction recognizes labels when used in the Dynamic C assembler.
Description
Adds a signed constant e to the Program Counter.
Since the instruction takes two increments of the PC to complete, two is subtracted from the displacement
value so that the displacement take place from the instruction opcode.
This instruction recognizes labels when used in the Dynamic C assembler.
JR cc,e
Opcode Instruction Clocks Operation
āā
20 e-2
28 e-2
30 e-2
38 e-2
JR cc,e
JR NZ,e
JR Z,e
JR NC,e
JR C,e
5 (2,2,1)
5 (2,2,1)
5 (2,2,1)
5 (2,2,1)
5 (2,2,1)
if {cc}PC=PC+e
if {NZ} PC = PC + e
if {Z} PC = PC + e
if {NC} PC = PC + e
if {C} PC = PC + e
Flags ALTD I/O
S Z L/V C F R SP S D
- - - -
JR e
Opcode Instruction Clocks Operation
18 e-2 JR e 5 (2,2,1) PC = PC + e
Flags ALTD I/O
S Z L/V C F R SP S D
- - - -