Skip to content

4y8/Tiny-CHIP-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Another Chip8 emulator but in Ocaml this time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages