beautypg.com

Zilog Z8F0130 User Manual

Page 175

background image

eZ8

CPU Core

User Manual

UM012820-0810

JR Instruction

160

JR

Definition

Jump Relative.

Syntax

JR DA

Operation

PC

 PC + X

where the jump offset, X, is calculated by the eZ8 CPU assembler from
the Program Counter (PC) value and the Destination Address (DA).

Description

The relative address offset is added to the Program Counter and control
passes to the instruction located at the address specified by the Program
Counter. The range of the relative address is +127 to –128 and the original
value of the Program Counter is taken to be the address of the first
instruction byte following the JR instruction.

Flags

C

Unaffected

Z

Unaffected

S

Unaffected

V

Unaffected

D

Unaffected

H

Unaffected