I built an 8-bit CPU simulator in Python from scratch
I built a tiny 8-bit CPU simulator in Python to better understand how computers work at a low level. It visualizes registers, memory, and instructions in real-time, so you can actually see each operation as it happens. You can write simple assembly code and watch how the CPU executes it step by step. The project is mainly for learning and experimentation, but I’d love feedback or ideas for improvement.
I built an 8-bit CPU simulator in Python from scratch launched on October 24, 2025 with 72 votes, #370 of 8,178 launches that month and more than 95% of that year's launches.
In plain words
An 8-bit CPU simulator built in Python that lets users write and execute assembly code while watching the processor work step by step. It displays registers, memory, and instructions in real time, making low-level computer architecture visible and interactive. Designed for learning and experimentation, the tool helps developers understand how CPUs process operations at a fundamental level.
written from the facts on this page · September 2026
From the sources
A tiny CPU simulator written in Python. Contribute to sql-hkr/tiny8 development by creating an account on GitHub.
Does a similar job
all alternatives →
8-bit CPU simulator in C2020 · github.com · ▲67A digital logic simulation written in C. Contribute to rzscheck/logic development by creating an account on GitHub.
I built a hardware processor that runs Python2025 · runpyxl.com · ▲983Hi everyone, I built PyXL — a hardware processor that executes a custom assembly generated from Python programs, without using a traditional interpreter or virtual machine. It compiles Python -> CPython Bytecode -> Instruction set designed for direct hardware execution. I’m sharing an early benchmark: a GPIO test where PyXL achieves a 480ns round-trip toggle — compared to 14-25 micro seconds on a MicroPython Pyboard - even though PyXL runs at a lower clock (100MHz vs. 168MHz). The design is stack-based, fully pipelined, and preserves Python's dynamic typing without static type restrictions.…
Homemade 32-bit CPU and OS (2015) [video]2016 · youtube.com · ▲253
CPU simulator in 60 lines of code2015 · github.com · ▲60Simple CPU model written in 60 lines of C with 8 registers and basic instructions - wkoszek/cpu60
Bit Serial CPU2020 · github.com · ▲99A bit-serial CPU written in VHDL, with a simulator written in C. - howerj/bit-serial
CoreTrace, a visual 16-bit CPU simulatorAug 2026 · coretrace.srianjaneyam.me · ▲5I built a 16-bit CPU simulator that runs entirely in the browser. You can write assembly, run it, or step through it one instruction at a time while watching what happens inside the CPU. It shows the registers, memory, flags, ALU, buses, and datapath as the program executes. You can also set breakpoints, inspect execution cycles, replay previous cycles, and try some example programs. I built this because I wanted CPU architecture to feel more tangible. Reading about fetch, decode, registers, buses, and the ALU is one thing. Watching an instruction actually move through the CPU is much more…
More dev tools this month
the category →

open-source IDE for thoughtful software design. Contribute to devdotfast/whiteboard development by creating an account on GitHub.
Dev tools · 27d ago · github.com

Contribute to reladraw/reladraw development by creating an account on GitHub.
Dev tools · 25d ago · github.com
OpenBot▲362Grok Bot alternative: free, local, open-source, multiplayer
Dev tools · 22d ago · openbot.run
Talanoa▲340Hi HN, I’m a fullstack developer, and honestly, I’ve lost count of how many side projects I’ve worked on over the years. But one idea kept coming back to me: a different kind of email client. It first came to me in 2014: “What if we could handle emails more like conversations?” Every year, I’d revisit this concept in my “Build Notes.” Ten years later, no one had built exactly what I had in mind — so I finally decided to do it myself. That’s how Talanoa was born. I wanted something focused on people, not timelines. I was tired of marking messages as unread just to remember to reply later, or…
Dev tools · 20d ago · talanoa.email
CoreSpeed▲332One MCP for everything your agents need: apps, memory, tools
Dev tools · 27d ago · corespeed.io
Source: Show HN post ↗
Launched alongside, October 2025
the whole month →


I went down the rabbit hole on a side project and ended up building this: Strange Attractors(https://blog.shashanktomar.com/posts/strange-attractors). It’s built with three.js. Working on it reminded me of the little "maths for fun" exercises I used to do while learning programming in early days. Just trying things out, getting fascinated and geeky, and being surprised by the results. I spent way too much time on this, but it was extreme fun. My favorite part: someone pointed me to the Simone Attractor on Threads. It is a 2D attractor and I asked GPT to extrapolate it to…
AI · Oct 2025 · blog.shashanktomar.com

Autism Simulator▲779Hey all, I built this. It’s not trying to capture every autistic experience (that’d be impossible). It’s based on my own lived experience as well as that of friends on the spectrum. I'm trying to give people a feel for what masking, decision fatigue, and burnout can look like day-to-day. That’s hard to explain in words, but easier to show through choices and stats. I'm not trying to "define autism". I’ve gotten good feedback here about resilience, meds, and difficulty tuning. I’ll keep tweaking it. If even a few people walk away thinking, "ah, maybe that’s why my coworker struggles in those…
Life & fun · 2025 · autism-simulator.vercel.app
