APPENDIX
Appendix 5. Hexadecimal instruction code table
7902 Group User’s Manual
21-51
012
3
4
5
67
89A
B
C
D
E
F
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0000000100100011010001010110011110001001101010111100110111101111
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
ASL
B
NEG
B
LDA
B,IMM
LDAB
B,ABS,X
ROL
B
ABS
B
EXTZ
B
ADD
B,IMM
EXTS
B
SUB
B,IMM
LSR
B
CLRB
B
CMP
B,IMM
ROR
B
CLR
B
ORA
B,IMM
AND
B,IMM
ASR
B
EOR
B,IMM
INC
B
PHB
STK
DEC
B
PLB
STK
TXB
IMP
CBNEB
B/IMM,REL
TYB
IMP
CBEQ
B/IMM,REL
LDA
B,ABS,X
ADD
B,ABS,X
SUB
B,ABS,X
CMP
B,ABS,X
ORA
B,ABS,X
AND
B,ABS,X
EOR
B,ABS,X
STAB
B,ABS,X
STA
B,ABS,X
TBX
IMP
TBY
IMP
CBNE
B/IMM,REL
LDAB
B,ABS
LDA
B,ABS
ADD
B,ABS
SUB
B,ABS
CMP
B,ABS
ORA
B,ABS
AND
B,ABS
EOR
B,ABS
STAB
B,ABS
STA
B,ABS
LDAB
B,ABL,X
LDA
B,ABL,X
STAB
B,ABL,X
STA
B,ABL,X
LDAB
B,ABL
LDA
B,ABL
STAB
B,ABL
STA
B,ABL
LDAB
B,DIR,X
LDA
B,DIR,X
ADD
B,DIR,X
SUB
B,DIR,X
CMP
B,DIR,X
ORA
B,DIR,X
AND
B,DIR,X
EOR
B,DIR,X
STAB
B,DIR,X
STA
B,DIR,X
LDAB
B,DIR
LDA
B,DIR
ADD
B,DIR
SUB
B,DIR
CMP
B,DIR
ORA
B,DIR
AND
B,DIR
EOR
B,DIR
STAB
B,DIR
STA
B,DIR
LDAB
B,L(DIR),Y
LDA
B,L(DIR),Y
ADDB
B,IMM
SUBB
B,IMM
STAB
B,L(DIR),Y
STA
B,L(DIR),Y
LDAB
B,(DIR),Y
LDA
B,(DIR),Y
LDAB
B,IMM
CMPB
B,IMM
ORAB
B,IMM
ANDB
B,IMM
EORB
B,IMM
STAB
B,(DIR),Y
STA
B,(DIR),Y
CBEQB
B/IMM,REL
D3–D0
D7–D4
INSTRUCTION CODE TABLE 9 (The first word’s code of each instruction is 8116)
Hexadecimal
notation
01
23
456
7
8
9
A
B
C
D
E
F
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
0000000100100011010001010110011110001001101010111100110111101111
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
LDAB
B,(DIR)
LDA
B,(DIR)
ADD
B,(DIR)
SUB
B,(DIR)
CMP
B,(DIR)
ORA
B,(DIR)
AND
B,(DIR)
EOR
B,(DIR)
STAB
B,(DIR)
STA
B,(DIR)
LDAB
B,(DIR,X)
LDA
B,(DIR,X)
ADD
B,(DIR,X)
SUB
B,(DIR,X)
CMP
B,(DIR,X)
ORA
B,(DIR,X)
AND
B,(DIR,X)
EOR
B,(DIR,X)
STAB
B,(DIR,X)
STA
B,(DIR,X)
LDAB
B,L(DIR)
LDA
B,L(DIR)
ADD
B,L(DIR)
SUB
B,L(DIR)
CMP
B,L(DIR)
ORA
B,L(DIR)
AND
B,L(DIR)
EOR
B,L(DIR)
STAB
B,L(DIR)
STA
B,L(DIR)
LDAB
B,SR
LDA
B,SR
ADD
B,SR
SUB
B,SR
CMP
B,SR
ORA
B,SR
AND
B,SR
EOR
B,SR
STAB
B,SR
STA
B,SR
LDAB
B,(SR),Y
LDA
B,(SR),Y
ADD
B,(SR),Y
SUB
B,(SR),Y
CMP
B,(SR),Y
ORA
B,(SR),Y
AND
B,(SR),Y
EOR
B,(SR),Y
STAB
B,(SR),Y
STA
B,(SR),Y
LDAB
B,ABS,Y
LDA
B,ABS,Y
ADD
B,ABS,Y
SUB
B,ABS,Y
CMP
B,ABS,Y
ORA
B,ABS,Y
AND
B,ABS,Y
EOR
B,ABS,Y
STAB
B,ABS,Y
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