github.com/DanielGilchrist/shrimp
main / published Jun 21, 2026 / repository
CHIP-8 Interpreter (WIP)
shrimp
Name unrelated, just having fun building a CHIP-8 interpreter
Native using SDL
WASM in the browser
Running locally
- Install SDL2
shards installcrystal run src/shrimp.cr --release -- --rom="/path/to/rom"
WASM
The interpreter can also be compiled to web assembly and run in the browser. This can be viewed at https://danielgilchrist.github.io/shrimp.
To compile to WASM and run the interpreter locally in your browser simply run the below script:
scripts/run_wasm_local.sh
Note: You will need python3 (local web server to get around CORS issues with .wasm files on localhost) and docker installed.
API
- GlobalState
- JSExportHelpers
- Shrimp
- String
A
Stringrepresents an immutable sequence of UTF-8 characters. - Web