English
Language : 

W65C832_1 Datasheet, PDF (43/64 Pages) –
WDC
THE WESTERN DESIGN CENTER, INC.
W65C832
Table 6-3 Opcode Matrix
-~--
I~
LSD
M
S
0
0
1
2
3
4
5
6
7
8
9
A
B
C
0
E
F
0
BRKs
28
ORA (d.x)
26
COPs
2*8
ORAd.s
2*4
TSBd ORAd ASLd
2-5 2 3 2 5
ORA[d] PHPs ORA II ASLA PHDs TSBa
2*6 • 1 3 2 2 1 2 1 * 4 3-6
ORAa
34
ASLa
36
ORAal
4 *5
0
1 BPL r ORA (d).Y ORA (d) ORA~d.S).Y TRBd ORAd.x ASld.x OR'\Idl.y
I-2 ­ 2
2 5 i 2- 5
27
2-5 2 4 2 6
26
.JS"l a AND (d,xl JSL al
2 -3 .6­ --2-_6. 4 *8
AND n.s
- 2*4
BITd
23
ANDd ROLd AND[d]
23
- ­2 5
2* 6
'-­
3
8MI r
22
AND (d).y AND (d) AND td.sl.y
25
2-5
27
BIT d.l< !ANDd.X ROL d.x
2 -4
24
26
- ­ ---­ f--.­
.\ RTI s EOR (d.x) ! W~M
---- --­ 1 7
26
2*2
EOR n.s MVP xyc EORd LSRd
2*4
3*7 2 3 2 5
ANDJdl.y
26
EOR [dl
2*6
--­ _. ,---­ 5
BVe r
22
EOR (d).y EOn (til EOR ~d$).y MVN xyc EOR d.x LSR d.x
25
2 -5
~--
27
3*7
2 -I .. 2 6
EOR [d].y
2*6
6
RTS s
16
ADC (d,x)
26
PER 5
3*6
ADCd.S
2*4
STZd AOCd ROAd ADC [dJ
2-3
23 25
2 *6
CLCi ORAa.y INCA TCSi
1 2 3 4 1-2 1*2
PLPs AND II ROLA PLDs
1 4 2 2 1 2 1 *5
SECi ANDa:y DEC A TSC i
- - . - 1 2 3 4 1 -2 1 * 2
f--.
PHAs EORn LSRA PHKs
1 3 2 2 1 2 1*3
CLI i EOR a.y PHYs TCDi
1 2 3 4 1-3 1 *2
PLAs AOcn RORA RTL 5
1 4 2 2 1 2 1*6
TRBa
3-6
BIT a
34
BIT a.x
3 -4
JMPa
33
JMPal
4*4
JMP (a)
35
ORAa.x ASL a.x ORAal.
3 4 3 7 4*5
1
ANDa
34
ROLa
36
ANOal
4*5
2
ANDa.x ROLa.x ANDal.
3 4 3 7 4 *5
:1
EORa
:.I 4
LSR a
36
EORal
4*5
4
EOR a,x LSR a.x EOR al..
34
3 7 4*5
5
ADCa RORa AOCal! 6
34
36
4 *5 i
7
BVS r
22
ADC (d),y
25
ADC(d) ADC ~d.S).y STZd.x ADC d.x RCR d.x ADC IdLy
2-5
27
2-4 2 4 2 6
2 *6
r-
SEIi ADCa.y PLYs TDCi JMP (a.x) ADCa.x ROR a.x ADCal.
1 2 3 4 1 - 4 1 * 2 3-6
34
3 7 4*5
7
8
BRAr
2-2
STA (d.x)
26
BRL rl
3*3
STAd.s
2*4
STYd STAd STXd
23
23 23
STA [d] DEYi BIT II TXA i PHBs STY a
2*6
1 2 2-2 1 2 1 * 3 3 4
STAa STXa STA al
34
34
4*5 8
9
BCCr
22
STA (d).y
26
A
LOY II
22
LDA (d,x)
26
STA (d)
2-5
LDX 1/
22
STA ~.s}.y
27
LDA d.s
2*4
STY d.x
24
LOYd
23
STAd.x STX d.y
24 24
LO~ LOXd
2
23
STAJdl.y
26
LOA [dl
2*6
TYAi STA a.y TXS i TXYi
1 2 3 5 1 2 1 *2
TAYi LOA II TAXi PLBs
1 2 2 2 1 2 1*4
STZa
3-4
LOY a
34
STAa.x
35
STZa.x STAal.x
3-5 4*5
9
LDAa
34
LDXa
34
LOAal
4*5
A
.B
8GS r
-2-.,-.-2-­
LOA (d).y
25
LOA (01) LOA ~d,S).y
2-5
27
LOYd.x LDAd,x LOX d'1
2 4 :1 4 2 4
LDAJdJ,v
26
CLVi l.DA a.y TSXi TYX i
-_. 1 2 3 4 1 2 1 * 2
LDYa.x
34
LOA a,X
34
LOX a.y LDAal,x
3 4 4*5
B
f--'
­ -----1-­ --_._­ .. c'
CPY ~
2~
eMf' (d,X)
~6
REP #
2*3
~.--.---"-
-.--~-
eMP (1.5 C:I'Y d
2*4 ,23
CMP IdLy CMP(d) CMP t<1.S),y PEl $
I I"~?~ __ -----­ 0
. 2._._5, -­ 2-5 r--:1-"-7--­ 2 * 6
IE CP;( II SSC l<l,x) SEP :I SBC d,S CPXd
2 f)
SBC (dLy
I:~EQ~ , ;~ 2
25
'--_.­
, iL_ -0­
1
2*:3
2*4
SSC «I) SOC ~d,s).y
2-5 '---2---7--­
2
3
23
PEA s
3*5
4
CMP<l DECd CMP[dj INY i CMP~
,..."_ 2 3
2 ..­ 5
2 *6
12 22
~~----- f - - - - - ' - - ­
eMP d,x DECd,x CMP[qi,y CLO i CMPa,y
24 26
2*6
12 3 4
SBCd INCd
23 25
SBC [dJ
2* 6
INXi SBC #
12 2 2
DEX i
12
PHXs
1- 3
,NOPi
2
WAil
1- 3
STP i
1-3
XBAi
1*3
CPVa CMPa DECa CMPal
" * :;
-- 4
3
'---­
,4,--­
-3- ­
-4. - -5­
JML la) CMPa,x DECa,x eMP al,>
3*6
3
4-
-
c
:3
--
7
'
4*5
CPX a SBCa INCa SBCal
34
:\ 4
3 6 4*5
SBC d.x l!-led.x SBC IdLy seol SBCa,y PLX S XCEi JSR (a,~) SSC a,x INC a,X SBC al,x
24 26
2 *6
1 2 3 4 , - 4 1*2 3*6
34
3 7 4*5
5
6
7
8
9
A
B
C
0
E
F
C
D
el
F
symbol
#
A
r
rl
i
s
d
d,x
cI,y
(d)
(tl,x)
(d).y
addressing mode
immediate
accumulator
prO'l'am ('ou"t~r relatiYe
prograr., COunler relative long
unpiled
stack
direct
direct indexed (with x)
direct indexed (with V)
direct indirect
direct indexed indirect
direct indirect indexed
symbol
(d]
[d],y
a
a.x
a,y
al
al,x
d,S
(d,s).y
(a)
(a,x)
xyc
addressing mode
direct indirect long
diwct indirect long indexed
absolule
absolute indexed (with x)
absolule indexed (wilh V)
absolute long
absolute long indexed
stack relati",
stack relative indirect indexed
absolute indirect
absolute indeXed indirect
block move
- - - -Op-Co-de Matrix Legend
!INSTRUCTION
MNEMONIC
BASE
NO, BYTES
* = New W65C816/802 OpcQdes
• = New W65C02 Opcodes
Blank = NMOS 6502 Opcodes
AC'DRESSING
MODE
BASE
NO, CYCLES
MARCH 1990
32