Intel 8086
Intel 8086
Intel between early 1976 and June 8, 1978, when it was released. The Intel 8088,
released July 1, 1979,[4] is a slightly modified chip with an external 8-bit data
bus (allowing the use of cheaper and fewer supporting ICs),[note 1] and is notable
as the processor used in the original IBM PC design.
The 8086 gave rise to the x86 architecture, which eventually became Intel's most
successful line of processors. On June 5, 2018, Intel released a limited-edition
CPU celebrating the 40th anniversary of the Intel 8086, called the Intel Core i7-
8086K.[4]
Contents
1 History
1.1 Background
1.2 The first x86 design
2 Details
2.1 Buses and operation
2.2 Hardware modes of 8086
2.3 Registers and instruction
2.4 Flags
2.5 Segmentation
2.5.1 Porting older software
2.6 Example code
2.7 Performance
2.8 Floating point
3 Chip versions
3.1 List of Intel 8086
3.2 Derivatives and clones
4 Support chips
5 Microcomputers using the 8086
6 See also
7 Notes
8 References
9 External links
History
Background
In 1972, Intel launched the 8008, the first 8-bit microprocessor.[note 2] It
implemented an instruction set designed by Datapoint Corporation with programmable
CRT terminals in mind, which also proved to be fairly general-purpose. The device
needed several additional ICs to produce a functional computer, in part due to it
being packaged in a small 18-pin "memory package", which ruled out the use of a
separate address bus (Intel was primarily a DRAM manufacturer at the time).
Two years later, Intel launched the 8080,[note 3] employing the new 40-pin DIL
packages originally developed for calculator ICs to enable a separate address bus.
It has an extended instruction set that is source-compatible (not binary
compatible) with the 8008[5] and also includes some 16-bit instructions to make
programming easier. The 8080 device was eventually replaced by the depletion-load-
based 8085 (1977), which sufficed with a single +5 V power supply instead of the
three different operating voltages of earlier chips.[note 4] Other well known 8-bit
microprocessors that emerged during these years are Motorola 6800 (1974), General
Instrument PIC16X (1975), MOS Technology 6502 (1975), Zilog Z80 (1976), and
Motorola 6809 (1978).
Whereas the 8086 was a 16-bit microprocessor, it used the same microarchitecture as
Intel's 8-bit microprocessors (8008, 8080, and 8085). This allowed assembly
language programs written in 8-bit to seamlessly migrate.[6] New instructions and
features — such as signed integers, base+offset addressing, and self-repeating
operations — were added. Instructions were added to assist source code compilation
of nested functions in the ALGOL-family of languages, including Pascal and PL/M.
According to principal architect Stephen P. Morse, this was a result of a more
software-centric approach. Other enhancements included microcode instructions for
the multiply and divide assembly language instructions. Designers also anticipated
coprocessors, such as 8087 and 8089, so the bus structure was designed to be
flexible.
The first revision of the instruction set and high level architecture was ready
after about three months,[note 5] and as almost no CAD tools were used, four
engineers and 12 layout people were simultaneously working on the chip.[note 6] The
8086 took a little more than two years from idea to working product, which was
considered rather fast for a complex design in 1976–1978.
The 8086 was sequenced[note 7] using a mixture of random logic[7] and microcode and
was implemented using depletion-load nMOS circuitry with approximately 20,000
active transistors (29,000 counting all ROM and PLA sites). It was soon moved to a
new refined nMOS manufacturing process called HMOS (for High performance MOS) that
Intel originally developed for manufacturing of fast static RAM products.[note 8]
This was followed by HMOS-II, HMOS-III versions, and, eventually, a fully static
CMOS version for battery powered devices, manufactured using Intel's CHMOS
processes.[note 9] The original chip measured 33 mm² and minimum feature size was
3.2 μm.
The architecture was defined by Stephen P. Morse with some help from Bruce Ravenel
(the architect of the 8087) in refining the final revisions. Logic designer Jim
McKevitt and John Bayliss were the lead engineers of the hardware-level development
team[note 10] and Bill Pohlman the manager for the project. The legacy of the 8086
is enduring in the basic instruction set of today's personal computers and servers;
the 8086 also lent its last two digits to later extended versions of the design,
such as the Intel 286 and the Intel 386, all of which eventually became known as
the x86 family. (Another reference is that the PCI Vendor ID for Intel devices is
8086h.)
Details
Due to a compact encoding inspired by 8-bit processors, most instructions are one-
address or two-address operations, which means that the result is stored in one of
the operands. At most one of the operands can be in memory, but this memory operand
can also be the destination, while the other operand, the source, can be either
register or immediate. A single memory location can also often be used as both
source and destination which, among other factors, further contributes to a code
density comparable to (and often better than) most eight-bit machines at the time.
The degree of generality of most registers is much greater than in the 8080 or
8085. However, 8086 registers were more specialized than in most contemporary
minicomputers and are also used implicitly by some instructions. While perfectly
sensible for the assembly programmer, this makes register allocation for compilers
more complicated compared to more orthogonal 16-bit and 32-bit processors of the
time such as the PDP-11, VAX, 68000, 32016, etc. On the other hand, being more
regular than the rather minimalistic but ubiquitous 8-bit microprocessors such as
the 6502, 6800, 6809, 8085, MCS-48, 8051, and other contemporary accumulator-based
machines, it is significantly easier to construct an efficient code generator for
the 8086 architecture.
Another factor for this is that the 8086 also introduced some new instructions (not
present in the 8080 and 8085) to better support stack-based high-level programming
languages such as Pascal and PL/M; some of the more useful instructions are push
mem-op, and ret size, supporting the "Pascal calling convention" directly. (Several
others, such as push immed and enter, were added in the subsequent 80186, 80286,
and 80386 processors.)
The 8086 has 64 K of 8-bit (or alternatively 32 K of 16-bit word) I/O port space.