Chip8 emulator written in ocaml