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
26
BCC/BCS/BEQ/BMI/BNE/BPL/BVC/BVS
Branch to aa if condition is true.
The range of relative addressing is –128 (backward) and +127 (forward) bytes.
Available Instruction
& No. Cycles
Assembly
Language
Form
Condition 6502
Opcode
Sunplus
Opcode
No.
Bytes
65b02
65n02
65r02 65s02
CPU12
BCC aa
C=0
90H
28H
2
2*** 2** 2** 2** 2**
BCS aa
C=1
B0H
38H
2
2*** 2** 2** 2** 2**
BEQ aa
Z=1
F0H
3AH
2
2*** 2** 2** 2** 2**
BMI aa
N=1
30H
18H
2
2*** 2** 2** 2** 2**
BNE aa
Z=0
D0H
2AH
2
2*** 2** 2** 2** 2**
BPL aa
N=0
10H
08H
2
2*** 2** 2** 2** 2**
BVC aa
V=0
50H
0AH
2
2*** 2** 2** 2** 2**
BVS aa
V=1
70H
1AH
2
2*** 2** 2** 2** 2**
** Add 1 clock cycle if branch occurs to the same page.
Add 2 clock cycles if branch occurs to different page.
***
Add 1 clock cycle if branch occurs.
N V D I Z C
- - - - - -