Skip to content
HN On Hacker News ↗

The History Behind the x86 CPU: From 4004 to 486

▲ 183 points • 74 comments • by ibobev • 4d ago • HN discussion ↗

Pangram verdict · v3.3

We believe that this text is a mix of AI, AI-assisted, and human-written content.

88 %

AI likelihood · overall

AI
12% human-written 87% AI-generated
SEGMENTS · HUMAN 4 of 40
SEGMENTS · AI 36 of 40
WORD COUNT 1,695
PEAK AI % 100% · §1
Analyzed
Nov 18
backend: pangram/v3.3
Segments scanned
40 windows
avg 42 words each
Distribution
12 / 87%
human / AI fraction
Verdict
AI
Pangram v3.3

Article text · 1,695 words · 40 segments analyzed

Human AI-generated
§1 AI · 100%

Why is x86 little-endian?

§2 AI · 100%

Why are the registers called AX, BX, CX, and DX? Why do DOS programmers write addresses like A000:0000, and why does a modern PC still wake up pretending to be a chip from 1978? The answers are not in the datasheets. They are in the story of how each chip was born.

§3 Human · 0%

We already covered the main ideas behind Real Mode & Protected Mode in one of our previous posts. This article will build on those concepts and take a deeper look at the history and evolution of the x86 family of CPUs. But rather than simply looking at the innovations introduced with each new chip, we need to understand how the architecture accumulated over time, from its origins in the early 70s up until the launch of the 486. Every time a new student starts learning x86 assembler with us, it's not rare to hear them complain that many aspects of the instruction set look arbitrary.

§4 AI · 100%

An accumulator that some instructions insist on, a base register that is the only one allowed to point at memory, a parity flag nobody seems to use, and an addressing scheme that adds two 16-bit numbers together in a very strange way.

§5 Human · 0%

The majority of teaching resources out there will help you write your first lines of x86 code, assemble it, link it, and as proceed as soon as the output matches what you were expecting. I try to always explain the evolution of the x86 family of CPUs, so every aspect of our code makes a little bit more sense.

§6 AI · 100%

None of these things are arbitrary, of course.

§7 AI · 100%

Each one is a decision someone made under pressure, usually to keep old software running on a new chip.

§8 AI · 100%

If you want to really understand x86 (and especially if you want to program a 486 under DOS), the best place to start is not the 486 manual. It's the story.

§9 AI · 100%

Here is the family tree we're going to walk through: Year Chip Width Addr. space What it added that still shows up in x86 197140044-bit4 KB prog. ROMIntel's first CPU, for a Busicom calculator 197280088-bit16 KBRegister set A, B, C, D, E, H, L; little-endian order and a parity flag, both inherited from the Datapoint 2200 terminal it was designed for 197480808-bit64 KB16-bit register pairs (BC, DE, HL), a real stack pointer, a separate 256-port I/O space with IN/OUT 197680858-bit64 KBOne 5 V supply; address and data multiplexed on the same pins to save pins 1978808616-bit1 MBSegmentation, a prefetch queue, 16-bit registers that contain the 8080's 8-bit ones 1979808816-bit inside, 8-bit bus1 MBThe cheaper version IBM chose for the 1981 PC 19828028616-bit16 MBProtected mode with segment descriptors and privilege rings 19858038632-bit4 GB32-bit registers, paging, virtual 8086 mode 19898048632-bit4 GBOn-chip cache and FPU, a 5-stage pipeline A table like this makes the evolution look neat and planned.

§10 AI · 100%

It wasn't.

§11 AI · 100%

Between these rows there are cancelled projects, a customer who walked away from its own chip, a stopgap that was supposed to last a couple of years, a sales campaign, a keyboard controller wired into the address bus, and a lawsuit.

§12 AI · 100%

Let's travel back to 1969 and see how it all happened!

§13 AI · 83%

A Calculator Chip: The 4004 The story starts with a Japanese calculator company.

§14 AI · 100%

In 1969, Busicom asked Intel (then a young memory company) to build a set of custom chips for a new printing calculator. Instead of designing many single-purpose chips, Intel's team proposed something more general: a small programmable processor that would run the calculator's logic from ROM. Intel 4004 The result was the 4004, released on November 15, 1971, and designed by Federico Faggin, Ted Hoff, Stanley Mazor, and Masatoshi Shima. It had 2,300 transistors, ran at about 740 kHz, and could address 4 KB of program ROM. Chip layout from the development phase of the Intel 4004 (source) The most important line in the 4004's story is not technical, though. Busicom had paid for the design and owned the rights. When Busicom ran into financial trouble in 1971, Faggin convinced Intel's CEO Bob Noyce to lower the chip's price in exchange for Intel getting out of the exclusivity deal. Intel paid back Busicom's $60,000 development costs and won the right to sell the chip to anyone (outside the calculator market). That deal is why "a microprocessor" became something Intel could sell, rather than a part buried inside one calculator. The Terminal That Didn't Want Its CPU: The 8008 At almost the same time, a second customer walked through Intel's door. In late 1969, Computer Terminal Corporation (CTC, later called Datapoint) asked Intel to build a chip for a programmable terminal called the Datapoint 2200. This detail matters a lot: Intel did not design the instruction set of this chip. CTC's engineers Victor Poor and Harry Pyle did. They had already built the Datapoint 2200's processor out of dozens of discrete TTL chips, and they wanted Intel to squeeze that same design onto one piece of silicon.

§15 AI · 100%

Datapoint 2200 programmable terminal Intel was slow.

§16 AI · 100%

Texas Instruments also tried to build the chip, but its samples were buggy and rejected.

§17 AI · 100%

Meanwhile, CTC shipped the Datapoint 2200 in 1970 with its TTL processor anyway, and later moved on to a faster design.

§18 AI · 100%

In the end, CTC voted to walk away from the project and leave the design to Intel instead of paying the $50,000 contract. Intel renamed it the 8008 and released it in April 1972 with 3,500 transistors and 16 KB of addressable memory.

§19 AI · 100%

So the ancestor of every x86 chip was designed by a terminal company, for a terminal, and then rejected by that terminal company. And two of the terminal's habits are still inside your PC today. Why x86 is Little-Endian The Datapoint 2200 processed numbers one bit at a time (a bit-serial design). If you're adding two numbers one bit at a time, you want to start with the lowest bit, because that's where the carry starts.

§20 AI · 100%

So it made sense to store the lowest byte first in memory.

§21 AI · 100%

The 8008 copied the Datapoint's design, the 8080 kept compatibility with the 8008, and the 8086 kept compatibility with the 8080.

§22 Human · 0%

Stephen Morse, the architect of the 8086, put it this way in his history of the early Intel processors: "This inverted storage, which was to haunt all processors evolved from the 8008, was a result of compatibility with the Datapoint bit-serial processor."

§23 AI · 100%

That's why, on your 486 (and even in a more modern Core i9), this instruction: mov DWORD ptr [buffer], 12345678h ...stores the bytes 78 56 34 12 in memory. Why x86 Has a Parity Flag The second habit is the parity flag (PF), which tells you if the result of the last operation had an even number of 1 bits. It's one of those flags that beginners look at and wonder who on earth needs it.

§24 AI · 100%

The answer is: a terminal does!

§25 AI · 100%

Morse again: "This permits testing for transmission errors, an obviously useful function for a CRT terminal."

§26 AI · 100%

Data arriving over a serial line often carried a parity bit, and the Datapoint needed a fast way to check it. Fifty years later, PF is still bit 2 of the x86 FLAGS register. The 8080 and the Birth of the PC Hobby The 8008 was slow and awkward, so Intel designed a much better successor. The 8080 was released in April 1974, with Federico Faggin as its primary architect and Masatoshi Shima on the detailed design. It had about 4,500 transistors, ran at 2 MHz, and could address 64 KB of memory. The 8080 was not binary compatible with the 8008, but it kept the same register set and the same "flavor." More importantly, it added several things you will recognize as an x86 programmer: Register pairs: B and C could be used together as the 16-bit pair BC, and the same for DE and HL The HL pair as the main way to point at memory (MOV A, M reads the byte at address HL) A real 16-bit stack pointer A separate I/O space with 256 ports, accessed with IN and OUT That separate I/O space is the reason why, many years later, VGA registers live at "port 3C8h" instead of at a memory address.

§27 AI · 100%

MITS Altair 8800, powered by an Intel 8080 The 8080 powered the Altair 8800 and became the standard CPU for CP/M, the most popular operating system for small business computers in the late 70s.

§28 AI · 100%

Suddenly, there was a lot of 8080 software out there.

§29 AI · 100%

And then Intel got some serious competition.

§30 AI · 100%

Faggin and Shima left Intel and went to Zilog, where they built the Z80: a chip that could run 8080 machine code, but was faster, cheaper to build a computer around, and had more instructions.

§31 AI · 100%

The Z80 started eating Intel's market.

§32 AI · 100%

The 8085: A Quiet Hint of What Was Coming Intel's answer was the 8085, released in March 1976. The "5" in the name refers to its biggest selling point: it needed a single +5 V power supply, while the 8080 needed +5 V, -5 V, and +12 V. To fit everything into a 40-pin package, the 8085 also multiplexed its bus: the same eight pins carried the low byte of the address first, and then the data. Remember this trick, because the 8086 uses it too. There's a lovely footnote here: the 8085 had 12 new instructions, but Intel made a last-minute decision to document only 2 of them.

§33 AI · 100%

The reason?

§34 AI · 100%

To keep things simple for the next chip, which was already being designed.

§35 AI · 100%

That chip was the 8086.

§36 AI · 100%

The Stopgap That Took Over the World: The 8086 In the mid 70s, Intel's big bet for the future was not the 8086.

§37 AI · 100%

It was the iAPX 432, a very ambitious processor designed with object-oriented programming and high-level languages in mind.

§38 AI · 100%

The 432 was late, and with the Z80 taking customers away, Intel needed something to sell in the meantime.

§39 AI · 100%

So, in May 1976, Intel started the 8086 project as a temporary product.

§40 Human · 0%

Stephen Morse was the principal architect, Jim McKevitt and John Bayliss were the lead hardware engineers, and Bill Pohlman managed the project. The 8086 was released on June 8, 1978.