B: Befehle (alphab.), Branch-Befehle D: Hilfsroutinen

Anhang C

Tabelle C-1: Befehlscode in hexadezimaler Reihenfolge
OPMnemonicMode~#  OPMnemonic Mode~#
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
NEG
·
·
COM
LSR
·
ROR
ASR
ASL, LSL
ROL
DEC
·
INC
TST
JMP
CLR
Direct
-
-
Direct
Direct
-
Direct
Direct
Direct
Direct
Direct
-
Direct
Direct
Direct
Direct
6
-
-
6
6
-
6
6
6
6
6
-
6
6
3
6
2
-
-
2
2
-
2
2
2
2
2
-
2
2
2
2
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
Page 2
Page3
NOP
SYNC
·
·
LBRA
LBSR
·
DAA
ORCC
·
ANDCC
SEX
EXG
TFR
-
-
Inherent
Inherent
-
-
Relative
Relative
-
Inherent
Immed.
-
Immed.
Inherent
Immed.
Immed.
-
-
2
³ 4
-
-
5
9
-
2
3
-
3
2
8
6
-
-
1
1
-
-
3
3
-
1
2
-
2
1
2
2
OPMnemonicMode~ # OPMnemonic Mode~#
20
21
22
23
24
25
26
27
28
29
2A
2B
2C
2D
2E
2F
BRA
BRN
BHI
BLS
BHS, BCC
BLO, BCS
BNE
BEQ
BVC
BVS
BPL
BMI
BGE
BLT
BGT
BLE
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
30
31
32
33
34
35
36
37
38
39
3A
3B
3C
3D
3E
3F
LEAX
LEAY
LEAS
LEAU
PSHS
PULS
PSHU
PULU
·
RTS
ABX
RTI
CWAI
MUL
·
SWI
Indexed
Indexed
Indexed
Indexed
Immed.
Immed.
Immed.
Immed.
-
Inherent
Inherent
Inherent
Inherent
Inherent
-
Inherent
4+
4+
4+
4+
5+
5+
5+
5+
-
5
3
6/15
³ 20
11
-
19
2+
2+
2+
2+
2
2
2
2
-
1
1
1
2
1
-
1
OPMnemonicMode~ # OPMnemonic Mode~#
40
41
42
43
44
45
46
47
48
49
4A
4B
4C
4D
4E
4F
NEGA
·
·
COMA
LSRA
·
RORA
ASRA
ASLA, LSLA
ROLA
DECA
·
INCA
TSTA
·
CLRA
Inherent
-
-
Inherent
Inherent
-
Inherent
Inherent
Inherent
Inherent
Inherent
-
Inherent
Inherent
-
Inherent
2
-
-
2
2
-
2
2
2
2
2
-
2
2
-
2
1
-
-
1
1
-
1
1
1
1
1
-
1
1
-
1
50
51
52
53
54
55
56
57
58
59
5A
5B
5C
5D
5E
5F
NEGB
·
·
COMB
LSRB
·
RORB
ASRB
ASLB, LSLB
ROLB
DECB
·
INCB
TSTB
·
CLRB
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
Inherent
2
-
-
2
2
-
2
2
2
2
2
-
2
2
-
2
1
-
-
1
1
-
1
1
1
1
1
-
1
1
-
1
OPMnemonicMode~ # OPMnemonic Mode~#
60
61
62
63
64
65
66
67
68
69
6A
6B
6C
6D
6E
6F
NEG
·
·
COM
LSR
·
ROR
ASR
ASL, LSL
ROL
DEC
·
INC
TST
JMP
CLR
Indexed
-
-
Indexed
Indexed
-
Indexed
Indexed
Indexed
Indexed
Indexed
-
Indexed
Indexed
Indexed
Indexed
6+
-
-
6+
6+
-
6+
6+
6+
6+
6+
-
6+
6+
3+
6+
2+
-
-
2+
2+
-
2+
2+
2+
2+
2+
-
2+
2+
2+
2+
70
71
72
73
74
75
76
77
78
79
7A
7B
7C
7D
7E
7F
NEG
·
·
COM
LSR
·
ROR
ASR
ASL, LSL
ROL
DEC
·
INC
TST
JMP
CLR
Extended
-
-
Extended
Extended
-
Extended
Extended
Extended
Extended
Extended
-
Extended
Extended
Extended
Extended
7
-
-
7
7
-
7
7
7
7
7
-
7
7
4
7
3
-
-
3
3
-
3
3
3
3
3
-
3
3
3
3
OPMnemonicMode~ # OPMnemonic Mode~#
80
81
82
83
84
85
86
87
88
89
8A
8B
8C
8D
8E
8F
SUBA
CMPA
SBCA
SUBD
ANDA
BITA
LDA
·
EORA
ADCA
ORA
ADDA
CMPX
BSR
LDX
·
Immed.
Immed.
Immed.
Immed.
Immed.
Immed.
Immed.
-
Immed.
Immed.
Immed.
Immed.
Immed.
Relative
Immed.
-
2
2
2
4
2
2
2
-
2
2
2
2
4
7
3
-
2
2
2
3
2
2
2
-
2
2
2
2
3
2
3
-
90
91
92
93
94
95
96
97
98
99
9A
9B
9C
9D
9E
9F
SUBA
CMPA
SBCA
SUBD
ANDA
BITA
LDA
STA
EORA
ADCA
ORA
ADDA
CMPX
JSR
LDX
STX
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
4
4
4
6
4
4
4
4
4
4
4
4
6
7
5
5
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
OPMnemonicMode~ # OPMnemonic Mode~#
A0
A1
A2
A3
A4
A5
A6
A7
A8
A9
AA
AB
AC
AD
AE
AF
SUBA
CMPA
SBCA
SUBD
ANDA
BITA
LDA
STA
EORA
ADCA
ORA
ADDA
CMPX
JSR
LDX
STX
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
4+
4+
4+
6+
4+
4+
4+
4+
4+
4+
4+
4+
6+
7+
5+
5+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
B0
B1
B2
B3
B4
B5
B6
B7
B8
B9
BA
BB
BC
BD
BE
BF
SUBA
CMPA
SBCA
SUBD
ANDA
BITA
LDA
STA
EORA
ADCA
ORA
ADDA
CMPX
JSR
LDX
STX
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
5
5
5
7
5
5
5
5
5
5
5
5
7
8
6
6
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
OPMnemonicMode~ # OPMnemonic Mode~#
C0
C1
C2
C3
C4
C5
C6
C7
C8
C9
CA
CB
CC
CD
CE
CF
SUBB
CMPB
SBCB
ADDD
ANDB
BITB
LDB
·
EORB
ADCB
ORB
ADDB
LDD
·
LDU
·
Immed
Immed
Immed
Immed
Immed
Immed
Immed
-
Immed
Immed
Immed
Immed
Immed
-
Immed
-
2
2
2
4
2
2
2
-
2
2
2
2
3
-
3
-
2
2
2
3
2
2
2
-
2
2
2
2
3
-
3
-
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
DA
DB
DC
DD
DE
DF
SUBB
CMPB
SBCB
ADDD
ANDB
BITB
LDB
STB
EORB
ADCB
ORB
ADDB
LDD
STD
LDU
STU
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
Direct
4
4
4
6
4
4
4
4
4
4
4
4
5
5
5
5
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
OPMnemonicMode~ # OPMnemonic Mode~#
E0
E1
E2
E3
E4
E5
E6
E7
E8
E9
EA
EB
EC
ED
EE
EF
SUBB
CMPB
SBCB
ADDD
ANDB
BITB
LDB
STB
EORB
ADCB
ORB
ADDB
LDD
STD
LDU
STU
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
Inexed
4+
4+
4+
6+
4+
4+
4+
4+
4+
4+
4+
4+
5+
5+
5+
5+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
2+
FO
F1
F2
F3
F4
F5
F6
F7
F8
F9
FA
FB
FC
FD
FE
FF
SUBB
CMPB
SBCB
ADDD
ANDB
BITB
LDB
STB
EORB
ADCB
ORB
ADDB
LDD
STD
LDU
STU
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
Extended
5
5
5
7
5
5
5
5
5
5
5
5
6
6
6
6
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
Page 2 and 3 Machine Codes
OPMnemonicMode~ # OPMnemonic Mode~#
1021
1022
1023
1024
1025
1026
1027
1028
1029
102A
102B
102C
102D
102E
102F
103F
LBRN
LBHI
LBLS
LBHS,LBCC
LBCS,LBLO
LBNE
LBEQ
LBVC
LBVS
LBPL
LBMI
LBGE
LBLT
LBGT
LBLE
SWI2
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Relative
Inherent
5
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
5(6)
20
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
2
1083
108C
108E
1093
109C
109E
109F
10A3
10AC
10AE
10AF
10B3
10BC
10BE
10BF
CMPD
CMPY
LDY
CMPD
CMPY
LDY
STY
CMPD
CMPY
LDY
STY
CMPD
CMPY
LDY
STY
Immed
Immed
Immed
Direct
Direct
Direct
Direct
Indexed
Indexed
Indexed
Indexed
Extended
Extended
Extended
Extended
5
5
4
7
7
6
6
7+
7+
6+
6+
8
8
7
7
4
4
4
3
3
3
3
3+
3+
3
3+
4
4
4
4
OPMnemonicMode~ # OPMnemonic Mode~#
10CE
10DE
10DF
10EE
10EF
10FE
10FF
LDS
LDS
STS
LDS
STS
LDS
STS
Immed
Direct
Direct
Indexed
Indexed
Extended
Extended
4
6
6
6+
6+
7
7
4
3
3
3+
3+
4
4
113F
1183
118C
1193
119C
11A3
11AC
11B3
11BC
SWI3
CMPU
CMPS
CMPU
CMPS
CMPU
CMPS
CMPU
CMPU
Inherent
Immed
Immed
Direct
Direct
Indexed
Indexed
Extended
Extended
20
5
5
7
7
7+
7+
8
8
2
4
4
3
3
3+
3+
4
4
NOTE: All unused opcodes are both undefined and illegal

LEGEND
~ Number of CPU cycles (less possible push pull or indexed-mode cycles)
# Number of program bytes
·Denotes unused opcode


B: Befehle (alphab.), Branch-Befehle D: Hilfsroutinen