November 09, 2018
33
Table 5-5 continued
M
ne
m
o
ni
c
Operation
OpCodes
Status Register
Addressing Mode
7
6
5
4
3
2
1
0
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
LDX
M
X
AE
BE
A6
B6
A2
N
.
.
.
.
.
Z
.
LDY
M
Y
AC
BC
A4
B4
A0
N
.
.
.
.
.
Z
.
LSR
0
15/7 6 … 1 0
C
4E 4A 5E
46
56
0
.
.
.
.
.
Z
C
MVN*
M
M NEGATIVE
54
.
.
.
.
.
.
.
.
MVP*
M
M POSITIVE
44
.
.
.
.
.
.
.
.
NOP
No Operation
EA
.
.
.
.
.
.
.
.
ORA
A V M
A
0D
1D 19
0F 1F
05
03
15
12
07
13
01
11
17
09
N
.
.
.
.
.
Z
.
PEA*
Mpc+1, Mpc+2 → Ms-1, Ms
S-
2 → S
F4
.
.
.
.
.
.
.
.
PEI*
M(d), M(d+1) → Ms-1, Ms
S-
2 → S
D4
.
.
.
.
.
.
.
.
PER*
Mpc+rl, Mpc+rl+1 → Ms-1,
Ms S-
2 → S
62
.
.
.
.
.
.
.
.
PHA
A
Ms, S-1
S
48
.
.
.
.
.
.
.
.
PHB*
DBR → Ms, S-1 → S
8B
.
.
.
.
.
.
.
.
PHD*
D → Ms, Ms-1, S-2 → S
0B
.
.
.
.
.
.
.
.
PHK*
PBR → Ms, S-1 → S
4B
.
.
.
.
.
.
.
.
PHP
P
Ms, S-1
S
08
.
.
.
.
.
.
.
.
PHX
X
Ms, S-1
S
DA
.
.
.
.
.
.
.
.
PHY
Y
Ms, S-1
S
5A
.
.
.
.
.
.
.
.
PLA
S + 1
S, Ms
A
68
N
.
.
.
.
.
Z
.
PLB
S + 1
S,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