ToC Contact

MC6809-MC6809E 8-Bit Microprocessor Programming Manual [M6809PM/AD]
© Motorola Inc., 1981

APPENDIX C - MACHINE CODE TO INSTRUCTION CROSS REFERENCE

PDF pages 199-202

C.1 INTRODUCTION

This appendix contains a cross reference between the machine code, represented in hexdecimal and the instruction and addressing mode that it represents. The number of MPU cycles and the number of program bytes is also given. Refer to Table C-1.

Table C-1. Machine Code to Instruction Cross Reference
LEGEND:
  ~Number of MPU cycles
(less possible push pull or indexed-mode cycles)
#Number of program bytes
-Denotes unused opcode

NOTE: All unused opcodes are both undefined and illegal

OPMnemMode~#
00NEGDirect62
01-↑--
02-|--
03COM|62
04LSR|62
05-|--
06ROR|62
07ASR|62
08ASL, LSL|62
09ROL|62
0ADEC|62
0B-|--
0CINC|62
0DTST|62
0EJMP↓32
0FCLRDirect62
 
10Page 2---
11Page 3---
12NOPInherent21
13SYNCInherent41
14----
15----
16LBRARelative53
17LBSRRelative93
18----
19DAAInherent21
1AORCCImmed32
1B----
1CANDCCImmed32
1DSEXInherent21
1EEXGImmed82
1FTFRImmed62
 
20BRARelative32
21BRN↑32
22BHI|32
23BLS|32
24BHS, BCC|32
25BLO, BCS|32
26BNE|32
27BEQ|32
28BVC|32
29BVS|32
2ABPL|32
2BBMI|32
2CBGE|32
2DBLT|32
2EBGT↓32
2FBLERelative32
 
30LEAXIndexed4+2+
31LEAY↑4+2+
32LEAS↓4+2+
33LEAUIndexed4+2+
34PSHSImmed5+2
35PULS↑5+2
36PSHU↓5+2
37PULUImmed5+2
38-Inherent--
39RTS↑51
3AABX|31
3BRTI|6/151
3CCWAI|202
3DMUL|111
3E-↓--
3FSWIInherent191
 
40NEGAInherent21
41-↑--
42-|--
43COMA|21
44LSRA|21
45-|--
46RORA|21
47ASRA|21
48ASLA, LSLA|21
49ROLA|21
4ADECA|21
4B-|--
4CINCA|21
4DTSTA|21
4E-↓--
4FCLRAInherent21
 
50NEGBInherent21
51-↑--
52-|--
53COMB|21
54LSRB|21
55-|--
56RORB|21
57ASRB|21
58ASLB, LSLB|21
59ROLB|21
5ADECB|21
5B-|--
5CINCB|21
5DTSTB|21
5E-↓--
5FCLRBInherent21
 
60NEGIndexed6+2+
61-↑--
62-|--
63COM|6+2+
64LSR|6+2+
65-|--
66ROR|6+2+
67ASR|6+2+
68ASL, LSL|6+2+
69ROL|6+2+
6ADEC|6+2+
6B-|--
6CINC|6+2+
6DTST|6+2+
6EJMP↓3+2+
6FCLRIndexed6+2+
 
70NEGExtended73
71-↑--
72-|--
73COM|73
74LSR|73
75-|--
76ROR|73
77ASR|73
78ASL, LSL|73
79ROL|73
7ADEC|73
7B-|--
7CINC|73
7DTST|73
7EJMP↓43
7FCLRExtended73
 
80SUBAImmed22
81CMPA↑22
82SBCA|22
83SUBD|43
84ANDA|22
85BITA|22
86LDA|22
87-|--
88EORA|22
89ADCA|22
8AORA|22
8BADDA↓22
8CCMPXImmed43
8DBSRRelative72
8ELDXImmed33
8F----
 
90SUBADirect42
91CMPA↑42
92SBCA|42
93SUBD|62
94ANDA|42
95BITA|42
96LDA|42
97STA|42
98EORA|42
99ADCA|42
9AORA|42
9BADDA|42
9CCMPX|62
9DJSR|72
9ELDX↓52
9FSTXDirect52
 
A0SUBAIndexed4+2+
A1CMPA↑4+2+
A2SBCA|4+2+
A3SUBD|6+2+
A4ANDA|4+2+
A5BITA|4+2+
A6LDA|4+2+
A7STA|4+2+
A8EORA|4+2+
A9ADCA|4+2+
AAORA|4+2+
ABADDA|4+2+
ACCMPX|6+2+
ADJSR|7+2+
AELDX↓5+2+
AFSTXIndexed5+2+
 
B0SUBAExtended53
B1CMPA↑53
B2SBCA|53
B3SUBD|73
B4ANDA|53
B5BITA|53
B6LDA|53
B7STA|53
B8EORA|53
B9ADCA|53
BAORA|53
BBADDA|53
BCCMPX|73
BDJSR|83
BELDX↓63
BFSTXExtended63
 
C0SUBBImmed22
C1CMPB↑22
C2SBCB|22
C3ADDD|43
C4ANDB↓22
C5BITBImmed22
C6LDBImmed22
C7-↑--
C8EORB|22
C9ADCB|22
CAORB|22
CBADDB|22
CCLDD|33
CD-↓--
CELDUImmed33
CF-- --
 
D0SUBBDirect42
D1CMPB↑42
D2SBCB|42
D3ADDD|62
D4ANDB|42
D5BITB|42
D6LDB|42
D7STB|42
D8EORB|42
D9ADCB|42
DAORB|42
DBADDB|42
DCLDD|52
DDSTD|52
DELDU↓52
DFSTUDirect52
 
E0SUBBIndexed4+2+
E1CMPB↑4+2+
E2SBCB|4+2+
E3ADDD|6+2+
E4ANDB|4+2+
E5BITB|4+2+
E6LDB|4+2+
E7STB|4+2+
E8EORB|4+2+
E9ADCB|4+2+
EAORB|4+2+
EBADDB|4+2+
ECLDD|5+2+
EDSTD|5+2+
EELDU↓5+2+
EFSTUIndexed5+2+
 
F0SUBBExtended53
F1CMPB↑53
F2SBCB|53
F3ADDD|73
F4ANDB|53
F5BITB|53
F6LDB|53
F7STB|53
F8EORB|53
F9ADCB|53
FAORB↓53
FBADDBExtended53
FCLDDExtended63
FDSTD↑63
FELDU↓63
FFSTUExtended63
 
Table C-1. Page 2 Machine Codes
OPMnemMode~#
1021LBRNRelative54
1022LBHI↑5(6)4
1023LBLS|5(6)4
1024LBHS, LBCC|5(6)4
1025LBCS, LBLO|5(6)4
1026LBNE|5(6)4
1027LBEQ|5(6)4
1028LBVC|5(6)4
1029LBVS|5(6)4
102ALBPL|5(6)4
102BLBMI|5(6)4
102CLBGE|5(6)4
102DLBLT|5(6)4
102ELBGT↓5(6)4
102FLBLERelative5(6)4
103FSWI2Inherent202
1083CMPDImmed54
108CCMPY|54
108ELDYImmed44
1093CMPDDirect73
109CCMPY↑73
109ELDY↓63
109FSTYDirect63
10A3CMPDIndexed7+3+
10ACCMPY↑7+3+
10AELDY↓6+3+
10AFSTYIndexed6+3+
10B3CMPDExtended84
10BCCMPY↑84
10BELDY↓74
10BFSTYExtended74
10CELDSImmed44
10DELDSDirect63
10DFSTSDirect63
10EELDSIndexed6+3+
10EFSTSIndexed6+3+
10FELDSExtended74
10FFSTSExtended74
 
Table C-1. Page 3 Machine Codes
OPMnemMode~#
113FSWI3Inherent202
1183CMPUImmed54
118CCMPSImmed54
1193CMPUDirect73
119CCMPSDirect73
11A3CMPUIndexed7+3+
11ACCMPSIndexed7+3+
11B3CMPUExtended84
11BCCMPSExtended84

© Motorola Inc., 1981 (now Freescale as of 2006)
Transformed into HTML by Matthias "Maddes" Bücher in 2006, 2007, 2023.
Maintained by the M6809 Docs team in 2024.
Use all information at your own risk.

Top ToC Contact