Skip to content

Latest commit

 

History

History
28 lines (27 loc) · 956 Bytes

README.org

File metadata and controls

28 lines (27 loc) · 956 Bytes

Tiny CHIP-8

This repository contain my CHIP-8 interpreter written in Ocaml, using only the Graphics library. It is aimed to be small : only 256 lines of code (without blank lines and comments). It currently only works with Linux distributions using PulseAudio but it can be easly ported to other OS because it’s only a problem of media player.

Install

Install the Graphics library and the dune build system using opam if you haven’t already:

opam install graphics dune

I’m using an azerty keyboard so the keyboard layout of the interpreter is suited for it, if you have a qwerty keyboard you can adjust the layout using the included patch, using this command:

patch -p0 < patches/qwerty.patch

Then build the interpreter using the following command :

dune build chip8.exe

Usage

To run a game, use the following command :

dune exec -- chip8.exe "the game"