← All projects

BIT4 – 4-bit CPU Emulator

A 4-bit computer architecture built from scratch: custom CPU, ALU, RAM, video unit, assembler and instruction set, with no frameworks.

Source code
BIT4 – 4-bit CPU Emulator

Overview

BIT4 is a 4-bit computer built entirely in software, from the lowest level up. It includes its own CPU, ALU, RAM, video unit, instruction set and an assembler for writing programs.

The challenge

Modern frameworks hide how a computer actually works. I wanted to understand it properly by designing every part myself: how instructions are fetched and decoded, how the ALU calculates and how memory and video output are connected.

How I built it

Tech

Tech stack