S
un
pl
us
IT
C
on
fid
en
tia
l
F
or
A
D
D
In
te
rn
at
io
na
l L
im
ite
d
U
se
O
nl
y
CPU6502 Instruction Manual v2.1
Sunplus reserves the rights to change this documentation without prior notice.
09/13/2005
21
Relative addressing mode
The relative addressing mode uses (adr 08) to specify a memory address. The relative
addressing mode only uses with the branch instructions. The maximum branch forward is
127 bytes and the maximum branch backward is 128 bytes.
Operation:
OP-Code
Adr 08
Example:
N V D I Z C
- - - - - -
LDA
$20
BCC
127 Bytes
M127:
LDA
#$20
.
.
.
BCC
M127
P128
BCC
LDA
$30
BCC
P128
.
.
.
P128:
LDA
#$30
128 Bytes