M68K Architecture Documentation
DISCLAIMER: This documentation is derived from the cgen cpu description
of this architecture, and does not represent official documentation
of the chip maker.
In cgen-parlance, an architecture consists of machines and models.
A `machine' is the specification of a variant of the architecture,
and a `model' is the implementation of that specification.
Typically there is a one-to-one correspondance between machine and model.
The distinction allows for separation of what application programs see
(the machine), and how to tune for the chip (what the compiler sees).
A "cpu family" is a cgen concoction to help organize the generated code.
Chip variants that are quite dissimilar can be treated separately by the
generated code even though they're both members of the same architecture.
M68K Architecture
This section describes various things about the cgen description of
the M68K architecture. Familiarity with cgen cpu descriptions
is assumed.
Bit number orientation (arch.lsb0?): lsb = 0
ISA description
-
basic - Basic M68K instruction set
- default-insn-word-bitsize: 16
- default-insn-bitsize: 16
- base-insn-bitsize: 16
- decode-assist: 15 14 13 12
- decode-splits:
CPU Families
-
m68k - Motorola M68000 family
Machines:
-
m68k16 - Motorola M68000 (16-bit bus)
Models:
-
mc68000 - Motorola MC68000 microprocessor
Machine variants
m68k16 - Motorola M68000 (16-bit bus)
-
bfd-name: m68k16
-
isas: basic
Model variants
mc68000 - Motorola MC68000 microprocessor
Registers
h-ar - address registers
-
machines: base
-
bitsize: 32
-
array: [8]
names:
a0 |
0 |
a1 |
1 |
a2 |
2 |
a3 |
3 |
a4 |
4 |
a5 |
5 |
a6 |
6 |
a7 |
7 |
sp |
7 |
h-ccr - condition code register
-
machines: base
-
bitsize: 16
h-dr - data registers
-
machines: base
-
bitsize: 32
-
array: [8]
names:
d0 |
0 |
d1 |
1 |
d2 |
2 |
d3 |
3 |
d4 |
4 |
d5 |
5 |
d6 |
6 |
d7 |
7 |
h-pc - program counter
-
machines: base
-
bitsize: 32
Assembler supplemental
This documentation was machine generated from the cgen cpu description
files for this architecture.
https://sourceware.org/cgen/