English
Language : 

Z86E3016PSG Datasheet, PDF (280/348 Pages) Zilog, Inc. – Z86E3016PSG
Z8 Family of Microcontrollers
User Manual
262
Jump Relative
JR cc, dst
Instruction Format
cc OPC
dst
Cycles
12 If jump taken
10 if jump not taken
Address Mode
OPC (Hex)
dst
ccB
RR
cc = 0 to F
Operation
If cc is true, PC ← PC + dst
If the condition specified by the cc is true, the relative address is added to
the PC and control passes to the instruction located at the address speci-
fied by the PC (See Section 12.3 for a list of condition codes). Otherwise,
the instruction following the JR instruction is executed. The range of the
relative address is +127 to –128, and the original value of the PC is taken
to be the address of the first instruction byte following the JR instruction.
Flag
C
Z
S
V
D
H
Description
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Example
If the result of the last arithmetic operation executed is negative, the next
four statements (which occupy a total of seven bytes) are skipped with the
statement:
JR Ml, #9
Op Code: 5B 09
Instruction Description
UM001602-0904