APPENDIX
Appendix 5. Hexadecimal instruction code table
7902 Group User’s Manual
21-48
012
34
567
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
ADC
A,(DIR)
ADCD
E,(DIR)
SBC
A,(DIR)
SBCD
E,(DIR)
MPY
(DIR)
MPYS
(DIR)
DIV
(DIR)
DIVS
(DIR)
ADC
A,(DIR,X)
ADCD
E,(DIR,X)
SBC
A,(DIR,X)
SBCD
E,(DIR,X)
MPY
(DIR,X)
MPYS
(DIR,X)
DIV
(DIR,X)
DIVS
(DIR,X)
ADC
A,L(DIR)
ADCD
E,L(DIR)
SBC
A,L(DIR)
SBCD
E,L(DIR)
MPY
L(DIR)
MPYS
L(DIR)
DIV
L(DIR)
DIVS
L(DIR)
ADC
A,SR
ADCD
E,SR
SBC
A,SR
SBCD
E,SR
MPY
SR
MPYS
SR
DIV
SR
DIVS
SR
ADC
A,(SR),Y
ADCD
E,(SR),Y
SBC
A,(SR),Y
SBCD
E,(SR),Y
MPY
(SR),Y
MPYS
(SR),Y
DIV
(SR),Y
DIVS
(SR),Y
ADC
A,(DIR),Y
ADCD
E,(DIR),Y
SBC
A,(DIR),Y
SBCD
E,(DIR),Y
MPY
(DIR),Y
MPYS
(DIR),Y
DIV
(DIR),Y
DIVS
(DIR),Y
ADC
A,L(DIR),Y
ADCD
E,L(DIR),Y
SBC
A,L(DIR),Y
SBCD
E,L(DIR),Y
MPY
L(DIR),Y
MPYS
L(DIR),Y
DIV
L(DIR),Y
DIVS
L(DIR),Y
ADC
A,DIR
ADCD
E,DIR
SBC
A,DIR
SBCD
E,DIR
MPY
DIR
MPYS
DIR
DIV
DIR
DIVS
DIR
ADC
A,DIR,X
ADCD
E,DIR,X
SBC
A,DIR,X
SBCD
E,DIR,X
MPY
DIR,X
MPYS
DIR,X
DIV
DIR,X
DIVS
DIR,X
ADC
A,ABS,Y
ADCD
E,ABS,Y
SBC
A,ABS,Y
SBCD
E,ABS,Y
MPY
ABS,Y
MPYS
ABS,Y
DIV
ABS,Y
DIVS
ABS,Y
ADC
A,ABS
ADCD
E,ABS
SBC
A,ABS
SBCD
E,ABS
MPY
ABS
MPYS
ABS
DIV
ABS
DIVS
ABS
ADC
A,ABS,X
ADCD
E,ABS,X
SBC
A,ABS,X
SBCD
E,ABS,X
MPY
ABS,X
MPYS
ABS,X
DIV
ABS,X
DIVS
ABS,X
ADC
A,ABL
ADCD
E,ABL
SBC
A,ABL
SBCD
E,ABL
MPY
ABL
MPYS
ABL
DIV
ABL
DIVS
ABL
ADC
A,ABL,X
ADCD
E,ABL,X
SBC
A,ABL,X
SBCD
E,ABL,X
MPY
ABL,X
MPYS
ABL,X
DIV
ABL,X
DIVS
ABL,X
ASL
DIR
ROL
DIR
LSR
DIR
ROR
DIR
ASR
DIR
ASL
DIR,X
ROL
DIR,X
LSR
DIR,X
ROR
DIR,X
ASR
DIR,X
ASL
ABS
ROL
ABS
LSR
ABS
ROR
ABS
ASR
ABS
ASL
ABS,X
ROL
ABS,X
LSR
ABS,X
ROR
ABS,X
ASR
ABS,X
D3–D0
D7–D4
INSTRUCTION CODE TABLE 3 (The first word’s code of each instruction is 2116)
Hexadecimal
notation
01
23
456
7
89
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
WIT
IMP
STP
IMP
PHT
STK
PLT
STK
PHG
STK
NEGD
E
ABSD
E
EXTZD
E
EXTSD
E
TAD,0
IMP
TAD,1
IMP
TAD,2
IMP
TAD,3
IMP
TDA,0
IMP
TDA,1
IMP
TDA,2
IMP
TDA,3
IMP
TAS
IMP
TSA
IMP
TXY
IMP
TYX
IMP
TXS
IMP
ADC
A,IMM
SBC
A,IMM
MOVM
DIR,X/IMM
MOVM
ABS,X/IMM
RLA
A
MPY
IMM
MPYS
IMM
DIV
IMM
ADDS
IMM
ADCB
A,IMM
MVP
BLK
MOVMB
DIR,X/IMM
LDT
IMM
RMPA
Multiplied
accumulation
TSX
IMP
DIVS
IMM
SUBS
IMM
SBCB
A,IMM
MVN
BLK
MOVMB
ABS,X/IMM
PEI
STK
ADCD
E,IMM
PEA
STK
JMP
(ABS)
SBCD
E,IMM
PER
STK
JMPL
L(ABS)
TDS
IMP
TSD
IMP
D3–D0
D7–D4
INSTRUCTION CODE TABLE 4 (The first word’s code of each instruction is 3116)
Hexadecimal
notation