Skip to content

ShariqAli-Dev/chip8-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chip-8 Emulator

A CHIP-8 emulator is a program that simulates the behavior of the CHIP-8, an interpreted programming language used in simple 8-bit computers, allowing the execution of classic games and applications designed for the CHIP-8 platform.

Screenshot

Hello Chip8

Installing

Get dependencies

go get -u github.com/veandco/go-sdl2/sdl

Note: Read the installation instructions for sdl2 library from go-sdl2 for your os platform.

Get code

go get -u github.com/shariqali-dev/chip8-emulator

Running

Sample roms can be used to test the installation.

go mod tidy
go run ./cmd/chip8 <path/to/rom>

or

make build
./bin/chip8 ./roms/filter.ch8

Key Bindings

Chip8 keypad         Keyboard mapping
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

Sources

About

Chip8 Emulator in Golang w/ SDL2 Bindings

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors