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
3
CONTENT
Revision History .............................................................................................................5
General Description .......................................................................................................7
Register .........................................................................................................................8
Status Register (P) .................................................................................................9
Stack.....................................................................................................................10
Stack Pointer (SP) ................................................................................................11
Addressing Mode .........................................................................................................12
Immediate addressing mode ................................................................................12
Absolute addressing mode ...................................................................................13
Absolute indexed addressing mode......................................................................14
Zero Page Addressing Mode ................................................................................15
Zero Page Indexed addressing Mode...................................................................16
Implied addressing mode......................................................................................17
Accumulator addressing mode .............................................................................17
Indexed indirect addressing mode ........................................................................18
Indirect addressing mode .....................................................................................19
Indirect Indexed addressing mode........................................................................20
Relative addressing mode ....................................................................................21
Format of Assembly Language Instruction...................................................................22
Instructions ..................................................................................................................23
ADC ......................................................................................................................23
AND ......................................................................................................................24
ASL.......................................................................................................................25
BCC/BCS/BEQ/BMI/BNE/BPL/BVC/BVS .............................................................26
BIT ........................................................................................................................27
CLC ......................................................................................................................28
CLD ......................................................................................................................28
CLI ........................................................................................................................28
CLR ......................................................................................................................28
CLV.......................................................................................................................30
CMP......................................................................................................................30
CPX ......................................................................................................................31
CPY ......................................................................................................................31
DEC ......................................................................................................................32
DEX ......................................................................................................................32
DEY ......................................................................................................................33
EOR......................................................................................................................33