Skip to content

hariienesh/chip8-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

chip8-emulator

A CHIP-8 emulator written in C.

CHIP-8 is an interpreted language from the 1970s, designed for early microcomputers. Emulating it means building the guts of a small computer from scratch — memory, registers, a fetch-decode-execute loop, a stack, timers, display, and input.

Build

gcc main.c chip8.c -o chip8 -lSDL2

Run

./chip8 rom.ch8

Keyboard

CHIP-8    →   Keyboard
1 2 3 C       1 2 3 4
4 5 6 D       Q W E R
7 8 9 E       A S D F
A 0 B F       Z X C V

Stack

  • C
  • SDL2

ROMs

Any public-domain CHIP-8 ROM works. Test suite: corax89/chip8-test-rom

About

CHIP-8 emulator in C for learning computer architecture and low-level CPU design concepts

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages