Opcode Matrix
Instructions shown in an Opcode Matrix
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 |
BRK 00nn27
|
ORA (dp,X)01nn26
|
COP const02nn27
|
ORA sr,S03nn24
|
TSB dp04nn25
|
ORA dp05nn23
|
ASL dp06nn25
|
ORA [dp]07nn26
|
PHP 0813
|
ORA #const09nn22
|
ASL A0A12
|
PHD 0B14
|
TSB addr0Cnnnn36
|
ORA addr0Dnnnn34
|
ASL addr0Ennnn36
|
ORA long0Fnnnnnn45
|
1 |
BPL nearlabel10nn22
|
ORA (dp),Y11nn25
|
ORA (dp)12nn25
|
ORA (sr,S),Y13nn27
|
TRB dp14nn25
|
ORA dp,X15nn24
|
ASL dp,X16nn26
|
ORA [dp],Y17nn26
|
CLC 1812
|
ORA addr,Y19nnnn34
|
INC A1A12
|
TCS 1B12
|
TRB addr1Cnnnn36
|
ORA addr,X1Dnnnn34
|
ASL addr,X1Ennnn37
|
ORA long,X1Fnnnnnn45
|
2 |
JSR addr20nnnn36
|
AND (dp,X)21nn26
|
JSL long22nnnnnn48
|
AND sr,S23nn24
|
BIT dp24nn25
|
AND dp25nn23
|
ROL dp26nn25
|
AND [dp]27nn26
|
PLP 2814
|
AND #const29nn22
|
ROL A2A12
|
PLD 2B15
|
BIT addr2Cnnnn34
|
AND addr2Dnnnn34
|
ROL addr2Ennnn36
|
AND long2Fnnnnnn45
|
3 |
BMI nearlabel30nn22
|
AND (dp),Y31nn25
|
AND (dp)32nn25
|
AND (sr,S),Y33nn27
|
BIT dp,X34nn24
|
AND dp,X35nn24
|
ROL dp,X36nn26
|
AND [dp],Y37nn26
|
SEC 3812
|
AND addr,Y39nnnn34
|
DEC A3A12
|
TSC 3B12
|
BIT addr,X3Cnnnn34
|
AND addr,X3Dnnnn34
|
ROL addr,X3Ennnn37
|
AND long,X3Fnnnnnn45
|
4 |
RTI 4016
|
EOR (dp,X)41nn26
|
WDM 42nn20
|
EOR sr,S43nn24
|
MVP srcbk, dstbk44nnnn30
|
EOR dp45nn23
|
LSR dp46nn25
|
EOR [dp]47nn26
|
PHA 4813
|
EOR #const49nn22
|
LSR A4A12
|
PHK 4B13
|
JMP addr4Cnnnn33
|
EOR addr4Dnnnn34
|
LSR addr4Ennnn36
|
EOR long4Fnnnnnn45
|
5 |
BVC nearlabel50nn22
|
EOR (dp),Y51nn25
|
EOR (dp)52nn25
|
EOR (sr,S),Y53nn27
|
MVN srcbk, dstbk54nnnn30
|
EOR dp,X55nn24
|
LSR dp,X56nn26
|
EOR [dp],Y57nn26
|
CLI 5812
|
EOR addr,Y59nnnn34
|
PHY 5A13
|
TCD 5B12
|
JMP long5Cnnnnnn44
|
EOR addr,X5Dnnnn34
|
LSR addr,X5Ennnn37
|
EOR long,X5Fnnnnnn45
|
6 |
RTS 6016
|
ADC (dp,X)61nn26
|
PER label62nnnn36
|
ADC sr,S63nn24
|
STZ dp64nn23
|
ADC dp65nn23
|
ROR dp66nn25
|
ADC [dp]67nn26
|
PLA 6813
|
ADC #const69nn22
|
ROR A6A12
|
RTL 6B16
|
JMP (addr)6Cnnnn35
|
ADC addr6Dnnnn34
|
ROR addr6Ennnn36
|
ADC long6Fnnnnnn45
|
7 |
BVS nearlabel70nn22
|
ADC (dp),Y71nn25
|
ADC (dp)72nn25
|
ADC (sr,S),Y73nn27
|
STZ dp,X74nn24
|
ADC dp,X75nn24
|
ROR dp,X76nn26
|
ADC [dp],Y77nn26
|
SEI 7812
|
ADC addr,Y79nnnn34
|
PLY 7A14
|
TDC 7B12
|
JMP (addr,X)7Cnnnn36
|
ADC addr,X7Dnnnn34
|
ROR addr,X7Ennnn37
|
ADC long,X7Fnnnnnn45
|
8 |
BRA nearlabel80nn23
|
STA (dp,X)81nn26
|
BRL label82nnnn34
|
STA sr,S83nn24
|
STY dp84nn23
|
STA dp85nn23
|
STX dp86nn23
|
STA [dp]87nn26
|
DEY 8812
|
BIT #const89nn22
|
TXA 8A12
|
PHB 8B13
|
STY addr8Cnnnn34
|
STA addr8Dnnnn34
|
STX addr8Ennnn34
|
STA long8Fnnnnnn45
|
9 |
BCC nearlabel90nn22
|
STA (dp),Y91nn25
|
STA (dp)92nn25
|
STA (sr,S),Y93nn27
|
STY dp,X94nn24
|
STA dp,X95nn24
|
STX dp,Y96nn24
|
STA [dp],Y97nn26
|
TYA 9812
|
STA addr,Y99nnnn34
|
TXS 9A12
|
TXY 9B12
|
STZ addr9Cnnnn34
|
STA addr,X9Dnnnn34
|
STZ addr,X9Ennnn35
|
STA long,X9Fnnnnnn45
|
A |
LDY #constA0nn22
|
LDA (dp,X)A1nn26
|
LDX #constA2nn22
|
LDA sr,SA3nn24
|
LDY dpA4nn23
|
LDA dpA5nn23
|
LDX dpA6nn23
|
LDA [dp]A7nn26
|
TAY A812
|
LDA #constA9nn22
|
TAX AA12
|
PLB AB14
|
LDY addrACnnnn34
|
LDA addrADnnnn34
|
LDX addrAEnnnn34
|
LDA longAFnnnnnn45
|
B |
BCS nearlabelB0nn22
|
LDA (dp),YB1nn25
|
LDA (dp)B2nn25
|
LDA (sr,S),YB3nn27
|
LDY dp,XB4nn24
|
LDA dp,XB5nn24
|
LDX dp,XB6nn24
|
LDA [dp],YB7nn26
|
CLV B812
|
LDA addr,YB9nnnn34
|
TSX BA12
|
TYX BB12
|
LDY addr,XBCnnnn34
|
LDA addr,XBDnnnn34
|
LDX addr,XBEnnnn34
|
LDA long,XBFnnnnnn45
|
C |
CPY #constC0nn22
|
CMP (dp,X)C1nn26
|
REP #constC2nn23
|
CMP sr,SC3nn24
|
CPY dpC4nn23
|
CMP dpC5nn23
|
DEC dpC6nn25
|
CMP [dp]C7nn26
|
INY C812
|
CMP #constC9nn22
|
DEX CA12
|
WAI CB13
|
CPY addrCCnnnn34
|
CMP addrCDnnnn34
|
DEC addrCEnnnn36
|
CMP longCFnnnnnn45
|
D |
BNE nearlabelD0nn22
|
CMP (dp),YD1nn25
|
CMP (dp)D2nn25
|
CMP (sr,S),YD3nn27
|
PEI (dp)D4nn26
|
CMP dp,XD5nn24
|
DEC dp,XD6nn26
|
CMP [dp],YD7nn26
|
CLD D812
|
CMP addr,YD9nnnn34
|
PHX DA13
|
STP DB13
|
JMP [addr]DCnnnn36
|
CMP addr,XDDnnnn34
|
DEC addr,XDEnnnn37
|
CMP long,XDFnnnnnn45
|
E |
CPX #constE0nn22
|
SBC (dp,X)E1nn26
|
SEP #constE2nn23
|
SBC sr,SE3nn24
|
CPX dpE4nn23
|
SBC dpE5nn23
|
INC dpE6nn25
|
SBC [dp]E7nn26
|
INX E812
|
SBC #constE9nn22
|
NOP EA12
|
XBA EB12
|
CPX addrECnnnn34
|
SBC addrEDnnnn34
|
INC addrEEnnnn36
|
SBC longEFnnnnnn45
|
F |
BEQ nearlabelF0nn22
|
SBC (dp),YF1nn25
|
SBC (dp)F2nn25
|
SBC (sr,S),YF3nn27
|
PEA addrF4nnnn35
|
SBC dp,XF5nn24
|
INC dp,XF6nn26
|
SBC [dp],YF7nn26
|
SED F812
|
SBC addr,YF9nnnn34
|
PLX FA14
|
XCE FB12
|
JSR (addr,X)FCnnnn38
|
SBC addr,XFDnnnn34
|
INC addr,XFEnnnn37
|
SBC long,XFFnnnnnn45
|
Instruction
Opcode hexSize bytesCycle count
| Register | Memory | Implicit | Math | Logic | Flow | Interrupt | Special | Extension |
Last modified January 23, 2022