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
40
ORA
OR memory with Accumulator, A
Å
A OR memory
Available Instruction
& No. Cycles
Addressing
mode
Assembly
Language
Form
6502
Opcode
Sunplus
Opcode
No.
Bytes
65b02 65n02
65r02 65s02
CPU12
Immediate
ORA
#dd 09H
44H
2
2 2 2 2 2
Zero Page ORA aa
05H
05H
2
3
3
3
3
3
Zero Page, X ORA aa, X
15H
0DH
2
4
4
X
X
X
Absolute ORA
aaaa
0DH
45H
3
4
4
X
X
X
Absolute, X ORA aaaa, X
1DH
4DH
3
4 4* X X X
Absolute, Y ORA aaaa, Y
19H
4CH
3
4 4* X X X
(Indirect, X) ORA (aa, X)
01H
04H
2
6
6
X
X
X
(Indirect), Y ORA (aa), Y
11H
0CH
2
6 5* 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
PHA
Push Accumulator on Stack
Available Instruction
& No. Cycles
Addressing
mode
Assembly
Language
Form
6502
Opcode
Sunplus
Opcode
No.
Bytes
65b02
65n02
65r02 65s02
CPU12
Implied PHA 48H
42H
1 3 3 3 3 3
N V D I Z C
- - - - - -