← Back to projects

SYSTEMS / EMULATION

CHIP-8 Emulator.

complete

A CHIP-8 interpreter built from the ground up in C++ with an SDL display and keyboard input.

Systems2022C++ / SDL2 / Emulation

OVERVIEW

A hands-on exploration of virtual machines, instruction decoding and the fundamentals of emulation. The project implements the CHIP-8 machine state, opcode execution, timers, keypad input and a 64×32 monochrome display.

An early emulator project and a useful foundation for more advanced console emulation.

WHAT'S INSIDE

  • Implemented the CHIP-8 memory map, registers, stack and program counter.
  • Built an opcode fetch/decode/execute loop.
  • Implemented sprite drawing, collision flags, timers and keypad input.
  • Rendered the 64×32 display through SDL.

BUILT WITH

C++SDL2Emulation

INTERACTIVE PLAYGROUND

A CHIP-8 machine in your browser.

Run the built-in movement demo or load a CHIP-8 ROM. Use Q/E or the on-screen keypad to move.

64 × 32 DISPLAY
DISPLAY / 01READY

Keyboard: 1 2 3 4 / Q W E R / A S D F / Z X C V map to CHIP-8 keys 0–F.

UNDER THE HOOD

Explore the source.

Browse selected files from the project's public GitHub repository without leaving this page.

OPEN REPOSITORY ↗
chip8.cpp
Loading source file…
CONNECTING TO GITHUB— LINES

Files load on demand from raw.githubusercontent.com and are displayed as text only. Large datasets, binaries and generated build artefacts are intentionally excluded from the preview.