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
38
Load memory data or data into Register X, X
Å
data
Available Instruction
& No. Cycles
Addressing
mode
Assembly
Language
Form
6502
Opcode
Sunplus
Opcode
No.
Bytes
65b02
65n02
65r02 65s02
CPU12
Immediate
LDX
#dd A2H
B0H
2 2 2 2 2 2
Zero
Page
LDX
aa A6H
B1H
2 3 3 3 3 3
Zero Page, Y LDX aa, Y
B6H
B9H
2
4
4
X
X
X
Absolute
LDX
aaaa
AEH
F1H
3 4 4 4 X 4
Absolute, Y LDX aaaa, Y
BEH
F9H
3
4 4* X X X
* Add 1 clock cycle if page boundary is crossed.
X: Not available.
N V D I Z C
! - - - ! -
N: Set if result is negative
Z: Set if result is 0
LDY
Load memory data or data into Register Y, Y
Å
data
Available Instruction
& No. Cycles
Addressing
mode
Assembly
Language
Form
6502
Opcode
Sunplus
Opcode
No.
Bytes
65b02
65n02
65r02 65s02
CPU12
Immediate LDY
#dd
A0H
30H
2
2
2
X
X
X
Zero Page LDY aa
A4H
31H
2
3
3
X
X
X
Zero Page, X LDY aa, X
B4H
39H
2
4
4
X
X
X
Absolute LDY
aaaa
ACH
71H
3
4
4
X
X
X
Absolute, X LDY aaaa, X
BCH
79H
3
4 4* X X X
* Add 1 clock cycle if page boundary is crossed.
X: Not available.
N V D I Z C
! - - - ! -
N: Set if result is negative
Z: Set if result is 0