go-chip8

command module
v0.0.0-...-1a04fb2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2018 License: MIT Imports: 5 Imported by: 0

README

go-chip8

A practise project to learn about emulation, implements CHIP-8 in golang.

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/skatiyar/go-chip8

Running

Sample roms can be used to test the installation.

go run main.go <modifier> <path/to/rom>

Modifier sets the logical size to pixel. Default resolution supported by CHIP8 is 64 x 32, setting modifier to 10 makes window of size 640 x 320.

go run main.go 10 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL