z386: An Open-Source 80386 Built Around Original Microcode
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

z386 is an open-source FPGA implementation of the Intel 80386 microprocessor, built around recovered original microcode. It can run DOS, protected-mode programs, and classic games, representing a significant step in hardware reconstruction.

The z386 project, an open-source FPGA implementation of the Intel 80386 microprocessor, has achieved a milestone by successfully booting DOS 6 and DOS 7, and running protected-mode software, including classic games. This development allows researchers and enthusiasts to explore the original 386 microarchitecture in hardware form, based on recovered microcode.

Before you orderOffer from Amazon

Get the latest gadgets delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

The z386 CPU is built around the original 386 microcode, which has been recovered and disassembled by researchers. The project is designed to reproduce key aspects of the original microarchitecture, including microcode ROM, instruction prefetch, decode logic, and address translation units. It runs at a clock speed comparable to a 70MHz 386 or low-end 486, with performance benchmarks showing it can handle software like Doom and Cannon Fodder. The implementation uses FPGA-friendly techniques, such as DSP blocks for multiplication and a 16 KB cache, to balance accuracy and practicality. The project is a continuation of previous efforts, notably the z8086, and benefits from shared microcode disassembly work from the community, including reenigne and others.

According to the project creator, the goal was to create a faithful reconstruction that is both educational and functional, capable of running real software. The design includes major units such as prefetch, decode, microcode sequencer, ALU, segmentation, protection, paging, and memory interface, mirroring the original 386 architecture. The project has demonstrated the ability to run complex protected-mode software, a significant step forward in hardware archaeology.

Why It Matters

This development matters because it provides a tangible, hardware-based window into the original 386 microarchitecture, which has been largely inaccessible since the microcode was proprietary. It enables detailed study of the processor’s design and operation, offering educational value and insights into early PC architecture. For the retro computing community, it represents a milestone in hardware reconstruction, potentially inspiring further projects and preserving computing history in a functional form.

Products Worth Considering

LG UltraGear 27-inch 4K UHD IPS Gaming Monitor, Dual Mode 180Hz/360Hz, 1ms, G-SYNC Compatible

LG UltraGear 27-inch 4K UHD IPS Gaming Monitor, Dual Mode 180Hz/360Hz, 1ms, G-SYNC Compatible

Logitech MX Master 4 Ergonomic Wireless Mouse with Haptic Feedback, Graphite

Logitech MX Master 4 Ergonomic Wireless Mouse with Haptic Feedback, Graphite

As an affiliate, we earn on qualifying purchases.

Background

The 80386 was a pivotal processor introduced by Intel in 1985, featuring protected mode, paging, and a 32-bit architecture that laid the groundwork for modern x86 systems. Prior efforts to emulate or reconstruct the 386 in hardware have been limited or theoretical. The recent recovery and disassembly of the original microcode, shared by the community, has enabled projects like z386 to move from software emulation to hardware implementation. The project builds on previous FPGA CPU efforts, such as z8086, and benefits from detailed microcode analysis that has only recently become available.

“The goal was to create a faithful, educational, and functional replica of the 386 microarchitecture based on original microcode.”

— Project creator

“The recovered microcode provides unprecedented insight into the 386’s internal operations, enabling accurate hardware reconstruction.”

— Community microcode disassembler team

What Remains Unclear

It is not yet clear how closely the current FPGA implementation matches the original 386 microarchitecture in all details, or how well it handles all edge cases and rare instructions. The project is still in development, with ongoing testing and refinement needed to improve accuracy and performance. Additionally, the full extent of microcode disassembly and interpretation remains a work in progress, and some microarchitectural features may be simplified or approximated.

What’s Next

The next steps include further testing with a broader set of software, optimizing performance, and possibly expanding microcode coverage. Developers aim to refine the microarchitecture fidelity and explore more complex protected-mode applications. Community collaboration and microcode analysis are expected to continue, potentially leading to more accurate or complete reconstructions of the 386 microarchitecture.

Key Questions

What is z386?

z386 is an open-source FPGA-based implementation of the Intel 80386 microprocessor, built around recovered original microcode, capable of running DOS and protected-mode software.

Why is this project significant?

It provides a hardware-based reconstruction of the 386 architecture, offering educational insights and preserving a key step in computing history that was previously only accessible via software emulation.

Can z386 run all 386 software?

Currently, it can run many DOS-based and protected-mode programs, including classic games like Doom, but full compatibility with all software remains under development.

How accurate is the microcode implementation?

The project is based on recovered and disassembled microcode, but some microarchitectural features may be simplified or approximated as development continues.

What are the future plans for z386?

Future efforts focus on expanding microcode coverage, improving performance, and testing with a wider range of software to enhance fidelity and usability.

Source: Hacker News

You May Also Like

The Humanoid Robotics Reality Check: Q2 2026 Pilot-to-Production Status

A detailed update on humanoid robot deployments in 2026, highlighting regional differences, production milestones, and ongoing challenges.

Google changes its search box

Google has unveiled a new, AI-powered search box, its biggest update in over 25 years, enhancing user experience with advanced AI tools and new functionalities.

What Might AI Be Like In 2027? 10 Predictions With Confidence Levels

Thorsten Meyer’s 10 forecasts for AI in 2027 assign confidence levels to predictions on agents, coding, memory, energy and research.

Will Kai And Speed Beat The Minecraft Challenge By August 13?

Kai and Speed are competing to beat a Minecraft challenge by August 13, with betting markets indicating high confidence. The outcome remains uncertain.