§ Список инструкции 6502

76543210xxx000xxxxx001xxxxx010xxxxx011xxxxx100xxxxx101xxxxx110xxxxx111xx
000xxx0000 BRK IMP04 DOP ZP 08 PHP IMP0C TOP ABS10 BPL REL14 DOP ZPX18 CLC IMP1C TOP ABX
001xxx0020 JSR ABS24 BIT ZP 28 PLP IMP2C BIT ABS30 BMI REL34 DOP ZPX38 SEC IMP3C TOP ABX
010xxx0040 RTI IMP44 DOP ZP 48 PHA IMP4C JMP ABS50 BVC REL54 DOP ZPX58 CLI IMP5C TOP ABX
011xxx0060 RTS IMP64 DOP ZP 68 PLA IMP6C JMP IND70 BVS REL74 DOP ZPX78 SEI IMP7C TOP ABX
100xxx0080 DOP IMM84 STY ZP 88 DEY IMP8C STY ABS90 BCC REL94 STY ZPX98 TYA IMP9C SYA ABX
101xxx00A0 LDY IMMA4 LDY ZP A8 TAY IMPAC LDY ABSB0 BCS RELB4 LDY ZPXB8 CLV IMPBC LDY ABX
110xxx00C0 CPY IMMC4 CPY ZP C8 INY IMPCC CPY ABSD0 BNE RELD4 DOP ZPXD8 CLD IMPDC TOP ABX
111xxx00E0 CPX IMME4 CPX ZP E8 INX IMPEC CPX ABSF0 BEQ RELF4 DOP ZPXF8 SED IMPFC TOP ABX
000xxx0101 ORA NDX05 ORA ZP 09 ORA IMM0D ORA ABS11 ORA NDY15 ORA ZPX19 ORA ABY1D ORA ABX
001xxx0121 AND NDX25 AND ZP 29 AND IMM2D AND ABS31 AND NDY35 AND ZPX39 AND ABY3D AND ABX
010xxx0141 EOR NDX45 EOR ZP 49 EOR IMM4D EOR ABS51 EOR NDY55 EOR ZPX59 EOR ABY5D EOR ABX
011xxx0161 ADC NDX65 ADC ZP 69 ADC IMM6D ADC ABS71 ADC NDY75 ADC ZPX79 ADC ABY7D ADC ABX
100xxx0181 STA NDX85 STA ZP 89 DOP IMM8D STA ABS91 STA NDY95 STA ZPX99 STA ABY9D STA ABX
101xxx01A1 LDA NDXA5 LDA ZP A9 LDA IMMAD LDA ABSB1 LDA NDYB5 LDA ZPXB9 LDA ABYBD LDA ABX
110xxx01C1 CMP NDXC5 CMP ZP C9 CMP IMMCD CMP ABSD1 CMP NDYD5 CMP ZPXD9 CMP ABYDD CMP ABX
111xxx01E1 SBC NDXE5 SBC ZP E9 SBC IMMED SBC ABSF1 SBC NDYF5 SBC ZPXF9 SBC ABYFD SBC ABX
000xxx1002 KIL 06 ASL ZP 0A ASL ACC0E ASL ABS12 KIL 16 ASL ZPX1A NOP 1E ASL ABX
001xxx1022 KIL 26 ROL ZP 2A ROL ACC2E ROL ABS32 KIL 36 ROL ZPX3A NOP 3E ROL ABX
010xxx1042 KIL 46 LSR ZP 4A LSR ACC4E LSR ABS52 KIL 56 LSR ZPX5A NOP 5E LSR ABX
011xxx1062 KIL 66 ROR ZP 6A ROR ACC6E ROR ABS72 KIL 76 ROR ZPX7A NOP 7E ROR ABX
100xxx1082 DOP IMM86 STX ZP 8A TXA IMP8E STX ABS92 KIL 96 STX ZPY9A TXS IMP9E SXA aby
101xxx10A2 LDX IMMA6 LDX ZP AA TAX IMPAE LDX ABSB2 KIL B6 LDX ZPYBA TSX IMPBE LDX ABX
110xxx10C2 DOP IMMC6 DEC ZP CA DEX IMPCE DEC ABSD2 KIL D6 DEC ZPXDA NOP DE DEC ABX
111xxx10E2 DOP IMME6 INC ZP EA NOP IMPEE INC ABSF2 KIL F6 INC ZPXFA NOP FE INC ABX
000xxx1103 SLO NDX07 SLO ZP 0B AAC IMM0F SLO ABS13 SLO NDY17 SLO ZPX1B SLO ABY1F SLO ABX
001xxx1123 RLA NDX27 RLA ZP 2B AAC IMM2F RLA ABS33 RLA NDY37 RLA ZPX3B RLA ABY3F RLA ABX
010xxx1143 SRE NDX47 SRE ZP 4B ASR IMM4F SRE ABS53 SRE NDY57 SRE ZPX5B SRE ABY5F SRE ABX
011xxx1163 RRA NDX67 RRA ZP 6B ARR IMM6F RRA ABS73 RRA NDY77 RRA ZPX7B RRA ABY7F RRA ABX
100xxx1183 AAX NDX87 AAX ZP 8B XAA IMM8F AAX ABS93 AXA NDY97 AAX ZPX9B XAS ABY9F AXA ABX
101xxx11A3 LAX NDXA7 LAX ZP AB ATX IMMAF LAX ABSB3 LAX NDYB7 LAX ZPYBB LAR ABYBF LAX ABY
110xxx11C3 DCP NDXC7 DCP ZP CB AXS IMMCF DCP ABSD3 DCP NDYD7 DCP ZPXDB DCP ABYDF DCP ABX
111xxx11E3 ISC NDXE7 ISC ZP EB SBC IMMEF ISC ABSF3 ISC NDYF7 ISC ZPXFB ISC ABYFF ISC ABX

§ Базовые инструкции в виде таблицы

000102030405060708090A0B0C0D0E0F
00BRK
IMP
ORA
NDX
ORA
ZP
ASL
ZP
PHP
IMP
ORA
IMM
ASL
ACC
ORA
ABS
ASL
ABS
10BPL
REL
ORA
NDY
ORA
ZPX
ASL
ZPX
CLC
IMP
ORA
ABY
ORA
ABX
ASL
ABX
20JSR
ABS
AND
NDX
BIT
ZP
AND
ZP
ROL
ZP
PLP
IMP
AND
IMM
ROL
ACC
BIT
ABS
AND
ABS
ROL
ABS
30BMI
REL
AND
NDY
AND
ZPX
ROL
ZPX
SEC
IMP
AND
ABY
AND
ABX
ROL
ABX
40RTI
IMP
EOR
NDX
EOR
ZP
LSR
ZP
PHA
IMP
EOR
IMM
LSR
ACC
JMP
ABS
EOR
ABS
LSR
ABS
50BVC
REL
EOR
NDY
EOR
ZPX
LSR
ZPX
CLI
IMP
EOR
ABY
EOR
ABX
LSR
ABX
60RTS
IMP
ADC
NDX
ADC
ZP
ROR
ZP
PLA
IMP
ADC
IMM
ROR
ACC
JMP
IND
ADC
ABS
ROR
ABS
70BVS
REL
ADC
NDY
ADC
ZPX
ROR
ZPX
SEI
IMP
ADC
ABY
ADC
ABX
ROR
ABX
80STA
NDX
STY
ZP
STA
ZP
STX
ZP
DEY
IMP
TXA
IMP
STY
ABS
STA
ABS
STX
ABS
90BCC
REL
STA
NDY
STY
ZPX
STA
ZPX
STX
ZPY
TYA
IMP
STA
ABY
TXS
IMP
STA
ABX
A0LDY
IMM
LDA
NDX
LDX
IMM
LDY
ZP
LDA
ZP
LDX
ZP
TAY
IMP
LDA
IMM
TAX
IMP
LDY
ABS
LDA
ABS
LDX
ABS
B0BCS
REL
LDA
NDY
LDY
ZPX
LDA
ZPX
LDX
ZPY
CLV
IMP
LDA
ABY
TSX
IMP
LDY
ABX
LDA
ABX
LDX
ABX
C0CPY
IMM
CMP
NDX
CPY
ZP
CMP
ZP
DEC
ZP
INY
IMP
CMP
IMM
DEX
IMP
CPY
ABS
CMP
ABS
DEC
ABS
D0BNE
REL
CMP
NDY
CMP
ZPX
DEC
ZPX
CLD
IMP
CMP
ABY
CMP
ABX
DEC
ABX
E0CPX
IMM
SBC
NDX
CPX
ZP
SBC
ZP
INC
ZP
INX
IMP
SBC
IMM
NOP
IMP
CPX
ABS
SBC
ABS
INC
ABS
F0BEQ
REL
SBC
NDY
SBC
ZPX
INC
ZPX
SED
IMP
SBC
ABY
SBC
ABX
INC
ABX

§ Таблица инструкции опкодов и тактов к ним

IMMZPZPXZPYABSABSXABSYI,XI,YIMPRELACCIND
ADC69 2T65 3T75 4T6D 4T7D 4*T79 4*T61 6T71 5*T
AND29 2T25 3T35 4T2D 4T3D 4*T39 4*T21 6T31 5*T
ASL06 5T16 6T0E 6T1E 7T0A 2T
BCC90 2**T
BCSB0 2**T
BEQF0 2**T
BIT24 3T2C 4T
BMI30 2**T
BNED0 2**T
BPL10 2**T
BRK00 7T
BVC50 2**T
BVS70 2**T
CLC18 2T
CLDD8 2T
CLI58 2T
CLVB8 2T
CMPC9 2TC5 3TD5 4TCD 4TDD 4*TD9 4*TC1 6TD1 5*T
CPXE0 2TE4 3TEC 4T
CPYC0 2TC4 3TCC 4T
DECC6 5TD6 6TCE 6TDE 7T
DEXCA 2T
DEY88 2T
EOR49 2T45 3T55 4T4D 4T5D 4*T59 4*T41 6T51 5*T
INCE6 5TF6 6TEE 6TFE 7T
INXE8 2T
INYC8 2T
JMP4C 3T6C 5T
JSR20 6T
LDAA9 2TA5 3TB5 4TAD 4TBD 4*TB9 4*TA1 6TB1 5*T
LDXA2 2TA6 3TB6 4TAE 4TBE 4*T
LDYA0 2TA4 3TB4 4TAC 4TBC 4*T
LSR46 5T56 6T4E 6T5E 7T4A 2T
NOPEA 2T
ORA09 2T05 3T15 4T0D 4T1D 4*T19 4*T01 6T11 5*T
PHA48 3T
PHP08 3T
PLA68 4T
PLP28 4T
ROL26 5T36 6T2E 6T3E 7T2A 2T
ROR66 5T76 6T6E 6T7E 7T6A 2T
RTI40 6T
RTS60 6T
SBCE9 2TE5 3TF5 4TED 4TFD 4*TF9 4*TE1 6TF1 5*T
SEC38 2T
SEDF8 2T
SEI78 2T
STA85 3T95 4T8D 4T9D 5T99 5T81 6T91 6T
STX86 3T96 4T8E 4T
STY84 3T94 4T8C 4T
TAXAA 2T
TAYA8 2T
TSXBA 2T
TXA8A 2T
TXS9A 2T
TYA98 2T