---
title: "z386: An Open-Source 80386 Built Around Original Microcode"
url: https://daily.dev/posts/z386-an-open-source-80386-built-around-original-microcode-jzqwybv7o
source_url: https://nand2mario.github.io/posts/2026/z386
type: article
source: "Hacker News"
published: 2026-05-23T20:02:51.451Z
updated: 2026-05-23T20:03:17.600Z
tags: ["reverse-engineering", "fpga"]
reading_time: 20
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# z386: An Open-Source 80386 Built Around Original Microcode

**[Hacker News](https://daily.dev/sources/hn)** · 20 min read · 1 upvotes · 0 comments

## Summary

z386 is an open-source FPGA implementation of the Intel 80386 CPU that uses the original recovered Intel microcode as its control program rather than reimplementing instructions behaviorally. The project reconstructs the 386's eight major units: prefetch, decode, microcode sequencer, ALU/shifter, segmentation, protection, paging, and BIU/cache. It boots DOS 6/7, runs protected-mode software via DOS/4GW and DOS/32A, and plays games like Doom at ~16.5 FPS. The post details the instruction prefetch queue, two-pass PLA-based decoder, microcode sequencer with delay slots, a 16KB 4-way VIPT L1 cache, and the testing methodology using SingleStepTests, 86Box-based protected-mode tests, and real software. Compared to ao486, z386 uses fewer lines of code (8K vs 17.6K) and slightly fewer FPGA resources, trading some performance for architectural fidelity to the original 386 design.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nand2mario.github.io/posts/2026/z386>

## Similar posts on daily.dev

- [Z386: An Open-Source 80386 Built Around Original Microcode](https://daily.dev/posts/z386-an-open-source-80386-built-around-original-microcode-ioqq7baty) · Hackaday · 0 upvotes · 1 comments
- [Performance Improvements For Open-Source 80386](https://daily.dev/posts/performance-improvements-for-open-source-80386-kirqzql3r) · Hackaday · 0 upvotes · 0 comments

---

Tags: [#reverse-engineering](https://daily.dev/tags/reverse-engineering), [#fpga](https://daily.dev/tags/fpga)

[View this post on daily.dev](https://daily.dev/posts/z386-an-open-source-80386-built-around-original-microcode-jzqwybv7o)
