News › 2022 › January 2022

CAMLBOY, a Game Boy emulator in OCaml

Project2022-01-11

linoscope's CAMLBOY emulates the Game Boy in OCaml and runs in the browser. A January 2022 write-up walks through the CPU, bus and test ROMs.

CAMLBOY is a Game Boy emulator written in OCaml by linoscope. It compiles for the browser; after a later change it compiles to WebAssembly. The demo is linoscope.github.io/CAMLBOY.

The accompanying essay, Writing a Game Boy Emulator in OCaml, is dated 11 January 2022. It covers the bus, registers, a GADT instruction set, cartridge types and test ROMs.

Links