How computers really work
I build emulators, operating systems and compilers from scratch in C++, and film every step. Follow one build and you'll know what your own code is doing underneath.
Mohammad Reza Bayat
C++ engineer. I make Morebyt.
Build a CHIP-8 emulator in C++
A whole computer in about 1,000 lines: memory, a CPU, a screen and a keyboard. Each episode adds one part and answers one question.
Episode 1How do zeros and ones actually run a program?
Episode 2How does computer memory actually work?
Episode 3How did old games draw pixels? The XOR trick
Episode 4How does a computer read keys, keep time and roll dice?
Episode 5How does a CPU actually work? Fetch, decode, execute- Episode 6
Running Pong: the series finale
Tuesday 1 December
The full playlist on YouTube. Everything else I build is on the projects page.
What we build next
One machine at a time, from the bottom up. Each build is a series you can follow from an empty folder.
| No. | Build | Status | When |
|---|---|---|---|
| 01 | CHIP-8 emulator | Filming now | Nov 2026 |
| 02 | A tiny operating system that boots | Next | From Feb 2027 |
| 03 | Your own memory allocator (malloc) | Planned | Jul 2027 |
| 04 | A small compiler | Planned | Aug 2027 |
Learning C++ for a job?
The C++ Roadmap 2027: what to learn in order, what to skip, and where the jobs really are. Read it on the site, or get the one-page checklist by email.
Need help with C++?
I review C++ code, track down slow or crashing programs, mentor learners and run workshops for teams.
See how I can help