r/thisweekinretro • u/root42 • May 24 '26
The 386 microcode has been fully reverse engineered - And it runs DOOM!
https://nand2mario.github.io/posts/2026/z386/In a group effort, a bunch of demoscene legends like reenigne have reverse engineered the microcode for the 80386, opening the path to 100% cycle accurate emulation of the CPU! Coder nand2mario has used this info to create a verilog implementation of the 386, which is already working and running DOOM, of course. This was announced on Mastodon by fellow hacker gloriouscow of MartyPC fame.
1
u/itsmethyroid May 26 '26
Has anyone done this for the 286? My dad is having trouble getting old radios to sync up with the clock speeds of later PCs
1
u/root42 May 26 '26
The 286 used implantation ROMs for the Microcode, and that has no visible marks on the die. Gloriouscow explained this on Mastodon: https://oldbytes.space/@gloriouscow/116625010305017233
3
1
u/IQueryVisiC May 26 '26
The whole idea of microcode is that it is code and does not need to be Verilog .
1
u/flumoxxed_squirtgun May 27 '26
Yeah. I ran Doom on my 386. Like shit. It ran like shit. Probably would be fine on more than 20mhz tho.
1
May 25 '26
[removed] — view removed comment
1
u/root42 May 25 '26
The current z386 isn’t, that‘s true. It’s still a work in progress. However it is already using the existing microcode. I quote:
z386 uses the original Intel 386 microcode as its main control program. The ROM decides which internal values move, when the ALU runs, when memory cycles start, when the sequencer branches, and when the next x86 instruction may begin. The RTL does not implement ADD, IRET, or SGDT instructions as large behavioral blocks. It implements the hardware that the microcode expects to control.
5
u/crashprime May 24 '26
How does this differ from projects like 86box? I was under the impression that it was cycle accurate.