Motorola 68000

term

programmingIT support

Kept in this browser · My desk

Motorola's microprocessor of 1979, sold as a 16-bit processor but built with 32-bit registers, a 16-bit data bus and a 24-bit address bus; the processor of the first workstations, the Apple Lisa and Macintosh and the Commodore Amiga.

The Computer History Museum says the 68000 found its place in workstations for graphics-intensive engineering programs, as in Apollo's DN100 of 1981, and then in the Lisa of 1983, the Macintosh of 1984 and the Amiga 1000 of 1985. In Brazil, Unitron's Macintosh clone, the Mac 512, reached retailers in June 1987.

What it is. The MC68000, which the Computer History Museum (CHM) dates to 1979, was the first implementation of Motorola's M68000 architecture, and it is the classic case of a processor whose generation depends on what is measured. Motorola's data sheet of April 1983 is titled '16-Bit Microprocessor' and describes 'a 24-bit address bus and a 16-bit data bus' and '17 32-bit data and address registers', with a 16-megabyte range; its address pins run from A1 to A23, and two data strobes select the upper or lower byte of the bus. Motorola's user's manual of 1993 adds that 'the full architecture provides for 32-bit address and data buses', and IEEE Spectrum's Chip Hall of Fame calls it a hybrid, internally 32-bit, with 68,000 transistors, more than double the number in Intel's 8086, and narrower buses only because 32-bit ones would have made it too expensive. Micro Sistemas called Unitron's Macintosh-compatible machine a 'micro de 32 bits' in 1985. The museum ranks it with Intel's 8086/8088 as the 16-bit processors with the widest market success, through the personal computer (PC) boom of the 1980s.

How it works. Eight data registers, D0 to D7, handle bytes (8 bits), words (16) and long words (32); seven address registers, A0 to A6, and the stack pointer, A7, serve as pointers and base registers, and all of them can be index registers. A7 is the user stack pointer or the supervisor stack pointer depending on the S bit, which is why the data sheet counts 17 registers and the later manual counts 16 in the user's view plus an 8-bit condition code register: the two descriptions count different models, not different chips. The 16-bit status register holds the condition codes extend (X), negative (N), zero (Z), overflow (V) and carry (C), the trace (T) and supervisor (S) bits and a three-bit interrupt mask. The data sheet lists 56 instruction types, five data types (bits, binary-coded decimal digits, bytes, words and long words) and 14 addressing modes in six basic kinds (register direct, register indirect, absolute, program counter relative, immediate and implied), with postincrement, predecrement, offsets and indexing; Motorola counted the combinations as over 1,000 useful instructions. Input and output are memory-mapped.

Memory and buses. The 68000 is big-endian: the high-order byte of a word has the even address, the same as the word, and the low-order byte the odd address one higher, and instructions and multibyte data must sit on even boundaries. The bus is asynchronous: a memory or device ends each transfer with a data transfer acknowledge (DTACK) signal instead of a fixed timing. The exception vector table occupies the first 512 words, 1,024 bytes, of memory; at reset the processor loads the supervisor stack pointer from address 000000 and the program counter from address 000004, and sets the interrupt level to seven. The interrupt mask has eight levels, and level seven interrupts cannot be inhibited by it. The data sheet lists versions at 4, 6, 8, 10 and 12.5 MHz; the Macintosh of 1984 ran its MC68000 at 7.8336 MHz, Apple's hardware manual of 1985 says.

Origin and machines. The CHM's 1979 entry says the 68000 was far faster than its contemporaries and found its place in workstations for graphics-intensive engineering programs, as in Apollo's DN100 of 1981, with a high-resolution display and built-in networking; then came Apple's Lisa of 1983, with 1 megabyte of memory, the Macintosh of 1984 at 2,500 dollars and Commodore's Amiga 1000 of 1985, whose hardware manual describes the MC68000 working with the Amiga's special-purpose chips. IEEE Spectrum adds the Atari ST, laser printers, arcade games and industrial controllers, and records that Nick Tredennick designed its logic on paper, perhaps the last major processor drawn that way. It also tells the great near miss: IBM wanted the 68000 for its PC and chose Intel's 8088 partly because the 68000 was still scarce. In Brazil, Micro Sistemas reported in June 1987 that Unitron's Mac 512 had reached shops in São Paulo and Rio de Janeiro, saying that 'by its 32-bit architecture' it could address up to 4 Mb, a limit of the machine's design rather than of the processor's 16 megabytes.

The family. The 1993 manual covers the MC68000, the MC68HC000 (a complementary metal-oxide-semiconductor, CMOS, version dissipating an order of magnitude less power than the original), the MC68HC001 and MC68EC000 (selectable 8- or 16-bit data bus, the latter an embedded controller), the MC68008 (8-bit data bus; 1 megabyte in its 48-pin package, 4 megabytes in the 52-pin one) and the MC68010. User-mode programs written for the 68000 run unchanged on the 68008, 68010, 68020, 68030 and 68040, because the user programming model is the same and the instruction sets are proper subsets of the full architecture.

What goes wrong. A word or long-word access, or an instruction fetch, at an odd address raises an address error: the bus cycle is aborted and the processor starts exception processing, as for a bus error. If a bus error or address error occurs while the processor is already handling a bus error, an address error or a reset, it halts, and only the RESET pin restarts it. Virtual memory is the deeper limit: Motorola's own manual reserves 'full virtual machine/memory capability' for the MC68010, which 'pushes enough information on the stack to be able to resume execution' after a bus error signals a missing page. Douglas MacGregor and David Mothersole of Motorola explained in IEEE Micro in June 1983 how the 68010 does it by instruction continuation, and named the one fault it still cannot survive, a fault on the system stack, which becomes a double bus fault. Virtual machines had a smaller hole: on the 68000, MOVE from SR is not privileged, so a program in user mode can read the S bit and learn that it is not the real supervisor; the 68010 made that instruction privileged and added MOVE from CCR for user programs.

Neighbours. Motorola's 8-bit 6800 of 1974, from Tom Bennett's team, came before it; Intel's 8086 and 8088 and Zilog's Z8000 were its 16-bit rivals; the 68010, 68020 and later members extended it; and the x86 family, its rival for the personal computer, and the Arm architecture are the neighbours a reader meets today. Big-endian byte order, assembly language and the Macintosh, Amiga and arcade boards of the 1980s are where it is still studied.

Also known as: 68000, MC68000, m68k, 680x0

Sources

← Back to M Back to the glossary