November 09, 2018
32
Table 5-5 Operation, Operation Codes, and Status Register
Mnemo
n
ic
Operation
Opcodes
Status Register
7
6
5
4
3
2
1
0
Addressing Mode
a
A
a
,x
a
,y
al
a
l,x
(a
)
(a
,x)
d
d
,s
d
,x
d
,y
(d
)
[d
]
(d
,s)
,
y
(d
,x)
(d
),y
[d
],
y
i
r
rl
s
xyc
#
N
V
M X
D
I
Z
C
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
N
V
1
B
D
I
Z
C
ADC
A+M+C
A
6D
7D 79
6F 7F
65
63
75
72
67
73
61
71
77
69
N
V
.
.
.
.
Z
C
AND
A
^
M
A
2D
3E 39
2F 3F
25
23
35
32
27
33
21
31
37
29
N
.
.
.
.
.
Z
.
ASL
C
15/7 6 … 10
0
0E 0A 1E
06
16
N
.
.
.
.
.
Z
C
BCC
Branch if C = 0
90
.
.
.
.
.
.
.
.
BCS
Branch if C = 1
B0
.
.
.
.
.
.
.
.
BEQ
Branch if Z = 1
F0
.
.
.
.
.
.
.
.
BIT
A
^
M (Note 1)
2C
3C
24
34
89
M
M
.
.
.
.
Z
.
BMI
Branch if N = 0
30
.
.
.
.
.
.
.
.
BNE
Branch if Z = 0
D0
.
.
.
.
.
.
.
.
BPL
Branch if N = 0
10
.
.
.
.
.
.
.
.
BRA
Branch Always
80
.
.
.
.
.
.
.
.
BRK
Break (Note 2)
00
.
.
.
•
0
1
.
.
BRL*
Branch Long Always
82
.
.
.
.
.
.
.
.
BVC
Branch if V = 0
50
.
.
.
.
.
.
.
.
BVS
Branch if V = 1
70
.
.
.
.
.
.
.
.
CLC
C
0
18
.
.
.
.
.
.
.
0
CLD
0
D
D8
.
.
.
.
0
.
.
.
CLI
0
1
58
.
.
.
.
.
0
.
.
CLV
0
V
B8
.
0
.
.
.
.
.
.
CMP
A-M
CD
DD D9 CF DF
C5 C3 D5
D2 C7 D3 C1 D1 D7
C9
N
.
.
.
.
.
Z
C
COP*
Co-Processor
02
.
.
.
.
0
1
.
.
CPX
X-M
EC
E4
E0
N
.
.
.
.
.
Z
C
CPY
Y-M
CC
C4
C0
N
.
.
.
.
.
Z
C
DEC
Decrement
CE
3A
DE
C6
D6
N
.
.
.
.
.
Z
.
DEX
X-1
A
CA
N
.
.
.
.
.
Z
.
DEY
Y-1
Y
88
N
.
.
.
.
.
Z
.
EOR
A x
v
M
A
4D
5D
59
4F
5F
5D
45
43
55
52
47
53
41
51
57
49
N
.
.
.
.
.
Z
.
INC
Increments
EE
1A
FE
E6
F6
N
.
.
.
.
.
Z
.
INX
X+1
X
E8
N
.
.
.
.
.
Z
.
INY
Y+1
Y
C8
N
.
.
.
.
.
Z
.
JML*
Jump Long to new
location
DC
.
.
.
.
.
.
.
.
JMP
Jump to new location
4C
5C
6C
7C
.
.
.
.
.
.
.
.
JSL*
Jump long to
subroutine
22
.
.
.
.
.
.
.
.
JSR
Jump to Subroutine
20
FC
.
.
.
.
.
.
.
.
LDA
M
A
AD
BD
B9
AF
BF
A5
A3
B5
B2
A7
B3
A1
B1
B7
A9
N
.
.
.
.
.
Z
.