APPENDIX
Appendix 5. Hexadecimal instruction code table
7902 Group User’s Manual
21-46
Appendix 5. Hexadecimal instruction code table
0
12
3
45
67
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
D3–D0
D7–D4
INSTRUCTION CODE TABLE 0
NOP
IMP
ASL
A
SEC
IMP
NEG
A
LDA
A,IMM
LDX
ABS
LDAB
A,ABS,X
BPL
REL
Table 2
LDY
DIR
ROL
A
CLC
IMP
ABS
A
LDY
ABS
Table 3
CPX
DIR
PSH
STK
SEI
IMP
EXTZ
A
ADD
A,IMM
LDXB
IMM
BMI
REL
Table 4
CPY
DIR
PUL
STK
CLI
IMP
EXTS
A
SUB
A,IMM
LDYB
IMM
BGTU
REL
Table 5
LSR
A
SEM
IMP
CLRB
A
CMP
A,IMM
BBSB
ABS,b,REL
BVC
REL
Table 6
BBCB
DIR,b,REL
ROR
A
CLR
A
ORA
A,IMM
BBCB
ABS,b,REL
CLM
IMP
BLEU
REL
Table 7
CBEQB
DIR/IMM,REL
PHD
STK
CLV
IMP
XAB
IMP
AND
A,IMM
BRAL
REL
BVS
REL
Table 8
CBNEB
DIR/IMM,REL
PLD
STK
RTI
IMP
ASR
A
EOR
A,IMM
BGT
REL
Table 9
INC
DIR
INC
A
RTS
IMP
PHA
STK
MOVM
DIR/IMM
INC
ABS
BCC
REL
Table 10
DEC
DIR
DEC
A
RTL
IMP
PLA
STK
MOVM
ABS/IMM
DEC
ABS
BCS
REL
Table 11
CBEQB
A/IMM,REL
SEP
IMM
TXA
IMP
PHP
STK
STK/IMM
Table 12
CBNEB
A/IMM,REL
CLP
IMM
TYA
IMP
PLP
STK
CBEQ
A/IMM,REL
BLE
REL
LDA
A,ABS,X
ADD
A,ABS,X
SUB
A,ABS,X
CMP
A,ABS,X
ORA
A,ABS,X
AND
A,ABS,X
EOR
A,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AB
A,DIR
LDA
A,DIR
ADD
A,DIR
SUB
A,DIR
CMP
A,DIR
ORA
A,DIR
AND
A,DIR
EOR
A,DIR
LDAD
E,DIR
ADDD
E,DIR
SUBD
E,DIR
CMPD
E,DIR
STAB
A,DIR
STA
A,DIR
STAD
E,DIR
LDAB
A,L(DIR),Y
LDA
A,L(DIR),Y
ADDB
A,IMM
SUBB
A,IMM
MOVMB
ABS/DIR,X
MOVM
ABS/DIR,X
LDAD
E,L(DIR),Y
BRA
REL
MOVMB
DIR/IMM
MOVMB
ABS/IMM
STAB
A,L(DIR),Y
STA
A,L(DIR),Y
STAD
E,L(DIR),Y
LDAB
A,(DIR),Y
LDA
A,(DIR),Y
LDAB
A,IMM
CMPB
A,IMM
MOVMB
DIR/DIR
MOVM
DIR/DIR
MOVMB
ABS/DIR
MOVM
ABS/DIR
LDAD
E,(DIR),Y
ORAB
A,IMM
ANDB
A,IMM
EORB
A,IMM
STAB
A,(DIR),Y
STA
A,(DIR),Y
STAD
E,(DIR),Y
BSR
REL
Table 1
Hexadecimal
notation
PLD n
/RTSD n
STK
/RTLD n
LDD n
/PHLD n
/PHD n
Note: Tables 1 through 14 specifies the contents of the INSTRUCTION CODE TABLE 1 through 14.
About the second word’s codes, refer to the INSTRUCTION CODE TABLE 1 through 14.