Skip to content

codexagon/chip8-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chip8

A simple CHIP-8 interpreter made using C and SDL2.

dependencies

  • SDL2

build instructions

  1. Make sure SDL2 is installed in your system. If not, install it on your system:

  2. Clone this repository & navigate to it

git clone git@github.com:codexagon/chip8-interpreter.git
cd chip8-interpreter
  1. Compile the binary
gcc -o chip8 *.c -lSDL2
  1. Download a CHIP-8 ROM file

  2. Run the compiled binary

./chip8 <downloaded-rom-file>

how to use

Microcomputers running CHIP-8 in the mid-1970s had a hex keypad of 16 values ranging from 0 to F. Its layout was:

1 2 3 C
4 5 6 D
7 8 9 E
A 0 B F

These keys are mapped to the left side of a standard QWERTY keyboard, like

1 2 3 4
Q W E R
A S D F
Z X C V

To exit the program, press Enter.

gallery

Pong: image

Tetris: image

About

A simple CHIP-8 interpreter written in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages