M
1
M
R
C
1
T
M
Bit manipulation
BTB
0
0000
5
BRSET0
BTB 2
5
BRCLR0
BTB 2
5
BRSET1
BTB 2
5
BRCLR1
BTB 2
5
BRSET2
BTB 2
5
BRCLR2
BTB 2
5
BRSET3
BTB 2
5
BRCLR3
BTB 2
5
BRSET4
BTB 2
5
BRCLR4
BTB 2
5
BRSET5
BTB 2
5
BRCLR5
BTB 2
5
BRSET6
BTB 2
5
BRCLR6
BTB 2
5
BRSET7
BTB 2
5
BRCLR7
BTB 2
Branch
REL
2
0010
Read/modify/write
INH
5
0101
3
NEGA
NEGX
INH 1
Control
Register/memory
EXT
C
1100
4
SUB
EXT 3
4
CMP
EXT 3
4
SBC
EXT 3
4
CPX
EXT 3
4
AND
EXT 3
4
BIT
EXT 3
4
LDA
EXT 3
5
STA
EXT 3
4
EOR
EXT 3
4
ADC
EXT 3
4
ORA
EXT 3
4
ADD
EXT 3
3
JMP
EXT 3
6
JSR
EXT 3
4
LDX
EXT 3
5
STX
EXT 3
BSC
1
0001
DIR
3
0011
INH
4
0100
IX1
6
0110
IX
7
INH
8
1000
INH
9
1001
IMM
A
1010
DIR
B
1011
IX2
D
1101
IX1
E
1110
IX
F
High
High
Low
Low
0111
1111
0
0000
1
0001
2
0010
3
0011
4
0100
5
0101
6
0110
7
0111
8
1000
9
1001
A
1010
B
1011
C
1100
D
1101
E
1110
F
1111
5
3
5
3
6
5
9
2
3
5
4
3
0
0000
1
0001
2
0010
3
0011
4
0100
5
0101
6
0110
7
0111
8
1000
9
1001
A
1010
B
1011
C
1100
D
1101
E
1110
F
1111
BSET0
BRA
NEG
NEG
NEG
RTI
SUB
SUB
SUB
SUB
SUB
3
BSC 2
5
REL 2
3
DIR 1
INH 2
IX1 1
IX 1
INH
2
IMM 2
2
DIR 3
3
IX2 2
5
IX1 1
4
IX
3
6
BCLR0
BRN
RTS
CMP
CMP
CMP
CMP
CMP
3
BSC 2
5
REL
1
INH
2
IMM 2
2
DIR 3
3
IX2 2
5
IX1 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IX
5
1
INH 2
2
IMM 2
2
DIR 3
3
IX2 2
5
IX1 1
4
IX
3
BSET5
BPL
DEC
DECA
DECX
DEC
DEC
CLI
ORA
ORA
ORA
ORA
ORA
3
BSC 2
5
REL 2
3
DIR 1
INH 1
INH 2
IX1 1
IX
1
INH 2
2
IMM 2
2
DIR 3
3
IX2 2
5
IX1 1
4
IX
3
BCLR5
BMI
SEI
ADD
ADD
ADD
ADD
ADD
3
BSC 2
5
REL
1
INH 2
2
IMM 2
DIR 3
2
IX2 2
4
IX1 1
3
IX
2
3
5
3
3
6
5
BSET6
BMC
INC
INCA
INCX
INC
INC
RSP
JMP
JMP
JMP
JMP
3
BSC 2
5
REL 2
3
DIR 1
4
INH 1
3
INH 2
3
IX1 1
5
IX
4
1
INH
2
DIR 3
5
IX2 2
7
IX1 1
6
IX
5
2
6
BCLR6
BMS
TST
TSTA
TSTX
TST
TST
NOP
BSR
JSR
JSR
JSR
JSR
3
BSC 2
5
REL 2
3
DIR 1
INH 1
INH 2
IX1 1
IX
1
INH 2
REL 2
2
DIR 3
3
IX2 2
5
IX1 1
4
IX
3
2
BSET7
BIL
STOP
LDX
LDX
LDX
LDX
LDX
3
BSC 2
5
REL
1
INH
2
IMM 2
DIR 3
4
IX2 2
6
IX1 1
5
IX
4
3
5
3
3
6
5
2
2
BCLR7
BIH
CLR
CLRA
CLRX
CLR
CLR
WAIT
TXA
STX
STX
STX
STX
3
BSC 2
REL 2
DIR 1
INH 1
INH 2
IX1 1
IX 1
INH 1
INH
2
DIR 3
IX2 2
IX1 1
IX
F
1111
3
0
0000
SUB
1
IX
Opcode in hexadecimal
Opcode in binary
Address mode
Cycles
Bytes
Mnemonic
Legend
Abbreviations for address modes and registers
BSC
BTB
DIR
EXT
INH
IMM
IX
IX1
IX2
REL
A
X
Bit set/clear
Bit test and branch
Direct
Extended
Inherent
Immediate
Indexed (no offset)
Indexed, 1 byte (8-bit) offset
Indexed, 2 byte (16-bit) offset
Relative
Accumulator
Index register
Not implemented
T