Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

The x86 CPU: From 4004 to 486 (https://pikuma.com)

180 points by ibobev 2 days ago | 70 comments | View on ycombinator

jgord 1 day ago |

Learned to program on an 8088 machine with Hercules mono graphics card, first in GW-Basic which was godawful, then in A86 assembler and finally Turbo Pascal which was a pinnacle of human engineering, a portal into a wonderful future ahead.

There was great excitement and relief when the 80386 came out with its 32bit address linear memory model. Everything suddenly became possible - serious compute on the desktop.

Also remember fondly the workhorse that was the Core2Duo and the i4700k beast, and Mike Abrashes Black book on game programming.

LLM-style AI doesn't yet seem to be the growth technology we need to bring back the economic prosperity of the 80s-90s - but if RL can figure out a stable plasma fusion configuration and layout chips for much better data-flow, then we might see the level of prosperity and innovation we saw in those decades when Moores Law held sway.

petercooper 1 day ago |

This is a neat history. However, going to be a bit nitpicky since they put this in bold re the 8008: "Intel did not design the instruction set of this chip" .. kinda true in a broad sense, but Intel engineers including Stan Mazor did change and enhance it, like adding increment and decrement operations and some other stuff mentioned in https://archive.computerhistory.org/resources/text/Oral_Hist...

kens 1 day ago |

One thing I'd emphasize is that the 4004 is not related to the 8008 at all, except that many of the same people worked on both chips.

chimpontherun 1 day ago |

Cool article, thanks! Nitpick: the reason behind the little endianness _originally_ was data access speed-up on 2200, not arithmetic. The 2200 only had 8-bit arithmetic (as did 8008), but its address bus was processed low-to-high. The arithmetic angle became relevant in 8080, with its 16-bit arithmetic. Side benefit: casting between 8- and 16-bit data using the same address.

Another nitpick: the article says 8085 had multiplexed address/data bus. This is actually also true for 8008, 8080 before it, and 8086, 8088, and 80186/88 after it.

skissane 1 day ago |

> why does a modern PC still wake up pretending to be a chip from 1978?

I don't know why Intel and AMD are still doing this.

If they changed their CPUs to start in long mode (or even just 32-bit protected mode), nobody would notice except BIOS writers.

And BIOS writers expect to have to change their code to support new CPUs anyway. If Intel and/or AMD made it an ultimatum, the BIOS vendors would comply.

I know Intel had a plan to remove real mode and 16-bit support entirely, X86S, which they abandoned. But a lot of people opposed that because it would have harmed backward compatibility, including the ability to run older OS versions under virtualisation. Changing the physical CPU to no longer start in real mode would be invisible to everything except the BIOS, and even for the BIOS, only its early initialisation code would have to change.

VolCoder 1 day ago |

I built my first machine using a 80486! It took a lot back then to build a machine. No YouTube, no Discord, no internet (for all intents and purposes). But a heck of a lot of fun!

genxy 1 day ago |

gregschlom 1 day ago |

> And what does the "X" mean? According to Morse himself, nothing special. It was simply an arbitrary letter combining the "H" and "L" halves into one 16-bit register (as told to Vladimir Keleshev).

Ah I always thought it was for eXtended. But I guess X as a placeholder for either H or L makes sense too.

seblon 1 day ago |

As far as I remember, some chips was called 586 and 686,but I think this was just a synonym for Pentium processors.

qurashee 1 day ago |

Gustavo is an amazing educator, really worth watching some of his courses.

drob518 1 day ago |

Talking about little endian…

> This inverted storage, which was to haunt all processors evolved from the 8008, was a result of compatibility with the Datapoint bit-serial processor.

Am I the only one who thinks little endian is the right way to store things? Other than reading multi-byte numbers in order in hex dumps and things like that, I don’t see much advantage to big endian.

BSPtree 1 day ago |

little endianness indeed only makes sense intuitively if the addition is bitwise. Why not fetch all the bytes then feed them into a carry look ahead adder?

RetroTechie 1 day ago |

"This hack lived much longer than anyone expected:"

Famous last words! Temporary lasts longer than you think.

dmitrygr 1 day ago |

> the 8085 had 12 new instructions, but Intel made a last-minute decision to document only 2 of them. The reason? To keep things simple for the next chip, which was already being designed. That chip was the 8086

I've head this claim a lot but have failed to find any real citation for this being the reason for the choice. Does anyone know of any actual evidence that this was the cause?

bigstrat2003 1 day ago |

The A20 gate is one of the most aggravating bits of x86 history. Not that they added it (backwards compatibility is very desirable for sales, so it makes sense that they added it), but that anyone was stupid enough to depend on that wrapping behavior in the first place. Such a short sighted, sloppy thing to do.

undefined 1 day ago |

undefined

walrus01 1 day ago |

I know this article is more about the instruction set, but I'm kind of surprised it entirely skips mentioning the 386SX (and the AMD 386SX), which was wildly popular in the lower end of home computers and some basic laptops for quite a while in the windows 3.0/3.1 era.

tireguess 1 day ago |

high quality here

arthur_steel about 20 hours ago |

[flagged]

Spalau 1 day ago |

[dead]

mdmizanur0001 1 day ago |

is this a consumer grade CPU or it's a enterprise grade?