Skip to content

c0dysharma/chip8-interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chip-8 Emulator

Emulation for a 1970s gaming console coded in C and SDL2 library.

Introduction

A Simple Emulator Progaram which can run CHIP-8 Games on Windows, Linux, and Mac.

DEMO

BRIX Game running on my Linux box.

Installaion

I added Windows and Linux precompiled binaries in bin folder so you can skip compilation

Arch-Linux

$ sudo pacman -S sdl2 make

Debian

$ sudo apt-get install libsdl2-dev make

Cent-os

$ sudo yum install SDL2-devel make

Mac OS

$ brew install make sdl2

Get a copy of repo and compile

$ git clone https://github.com/c0dysharma/chip8-interpreter.git

$ make

Usage

Unix based

cd into to chip8-interpreter/bin/

$ ./chip8 <path-to-rom-file>

ex- ./chip8 ../roms/BRIX

Windows

Go to chip8-interpreter/bin/ hold down shift and right click on window area and select Open Command Window Here

chip8win.exe <path-to-rom-file>

ex- chip8win.exe ..\roms\BRIX

Control Maps

Control Map

Game Examples

Space INVADERS INVADERS

Maze MAZE

Missile MISSILE

UFO UFO

Todos

TODO: add debugger

TODO: add beep sound

TODO: optimise code

Refernces

[0] https://en.wikipedia.org/wiki/CHIP-8

[1] http://www.multigesture.net/articles/how-to-write-an-emulator-chip-8-interpreter/

[2] https://www.reddit.com/r/emudev

[3] http://devernay.free.fr/hacks/chip8/C8TECH10.HTM#2.2

About

Yet another Chip 8 emulator built in C with SDL2 library works on Windows|Linux|Mac

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published