pich8-go

command module
v0.0.0-...-89247e0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: MIT Imports: 2 Imported by: 0

README

pich8-go

A cross-platform CHIP-8, SUPER-CHIP and XO-CHIP interpreter written in Go

Ported from my original Rust pich8 interpreter.
The goal was give Go a try, I had no prior experience.

Screenshot

pich8-go

Key Mapping

As with most other emulators, the keys are mapped as follows.
On other keyboard layouts it should be the same keys (not the same characters) as the keys are determined by scancode.

    Keyboard                     CHIP-8
┌───┬───┬───┬───┐           ┌───┬───┬───┬───┐
│ 1 │ 2 │ 3 │ 4 │           │ 1 │ 2 │ 3 │ C │
├───┼───┼───┼───┤           ├───┼───┼───┼───┤
│ Q │ W │ E │ R │           │ 4 │ 5 │ 6 │ D │
├───┼───┼───┼───┤     →     ├───┼───┼───┼───┤
│ A │ S │ D │ F │           │ 7 │ 8 │ 9 │ E │
├───┼───┼───┼───┤           ├───┼───┼───┼───┤
│ Z │ X │ C │ V │           │ A │ 0 │ B │ F │
└───┴───┴───┴───┘           └───┴───┴───┴───┘

Build

On Linux, following packages are required.

$ sudo apt-get install -y libgl1-mesa-dev xorg-dev libasound2-dev

Afterwards the build can simply be done using go.

$ go build

To hide the console window on Windows, use the following command.

> go build -ldflags -H=windowsgui

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cpu

Jump to

Keyboard shortcuts

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