cd /news/semiconductor/80386-barrel-shifter · home topics semiconductor article
[ARTICLE · art-11756] src=nand2mario.github.io ↗ pub= topic=semiconductor verified=true sentiment=· neutral

80386 Barrel Shifter

The article describes the author's project to build an 80386-compatible processor core in SystemVerilog using original Intel microcode, with real mode operational and over 10,000 test cases passing. It highlights that the 386 features a dedicated barrel shifter capable of completing multi-bit shifts in a single cycle, unlike iterative operations like multiplication. The post focuses on how the microcode enables this single hardware unit to handle all shift and rotate variants, including complex rotate-through-carry instructions.

read1 min views24 publishedFeb 7, 2026

I’m currently building an 80386-compatible core in SystemVerilog, driven by the original Intel microcode extracted from real 386 silicon. Real mode is now operational in simulation, with more than 10,000 single-instruction test cases passing successfully, and work on protected-mode features is in progress. In the course of this work, corners of the 386 microcode and silicon have been examined in detail; this series documents the resulting findings. In the previous post, we looked at multiplication and division -- iterative algorithms that process one bit per cycle. Shifts and rotates are a different story: the 386 has a dedicated barrel shifter that completes an arbitrary multi-bit shift in a single cycle. What's interesting is how the microcode makes one piece of hardware serve all shift and rotate variants -- and how the complex rotate-through-carry instructions are handled.

── more in #semiconductor 4 stories · sorted by recency
── more on @intel 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/80386-barrel-shifter] indexed:0 read:1min 2026-02-07 ·