3802 GROUP USER’S MANUAL
APPENDIX
3.4 List of instruction codes
3-65
3.9 List of instruction codes
3-byte instruction
2-byte instruction
1-byte instruction
D
7
– D
4
D
3
– D
0
Hexadecimal
notation
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0000
0
BRK
BPL
JSR
ABS
BMI
RTI
BVC
RTS
BVS
BRA
BCC
LDY
IMM
BCS
CPY
IMM
BNE
CPX
IMM
BEQ
0001
1
ORA
IND, X
ORA
IND, Y
AND
IND, X
AND
IND, Y
EOR
IND, X
EOR
IND, Y
ADC
IND, X
ADC
IND, Y
STA
IND, X
STA
IND, Y
LDA
IND, X
LDA
IND, Y
CMP
IND, X
CMP
IND, Y
SBC
IND, X
ZP, X
SBC
IND, Y
0010
2
JSR
ZP, IND
CLT
JSR
SP
SET
STP
—
MUL
ZP, X
—
RRF
ZP
—
LDX
IMM
JMP
ZP, IND
0011
3
BBS
0, A
BBC
0, A
BBS
1, A
BBC
1, A
BBS
2, A
BBC
2, A
BBS
3, A
BBC
3, A
BBS
4, A
BBC
4, A
BBS
5, A
BBC
5, A
BBS
6, A
BBC
6, A
BBS
7, A
BBC
7, A
0100
4
—
—
BIT
ZP
—
COM
ZP
—
TST
ZP
—
STY
ZP
STY
ZP, X
LDY
ZP
LDY
ZP, X
CPY
ZP
—
CPX
ZP
—
0101
5
ORA
ZP
ORA
ZP, X
AND
ZP
AND
ZP, X
EOR
ZP
EOR
ZP, X
ADC
ZP
ADC
ZP, X
STA
ZP
STA
ZP, X
LDA
ZP
LDA
ZP, X
CMP
ZP
CMP
ZP, X
SBC
ZP
SBC
ZP, X
0110
6
ASL
ZP
ASL
ZP, X
ROL
ZP
ROL
ZP, X
LSR
ZP
LSR
ZP, X
ROR
ZP
ROR
ZP, X
STX
ZP
STX
ZP, Y
LDX
ZP
LDX
ZP, Y
DEC
ZP
DEC
ZP, X
INC
ZP
INC
ZP, X
0111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