orca/ext/wasm3/test/wasi/wasmboy
Martin Fouilleul 17c0f02962 orca runtime initial commit 2023-04-12 16:21:03 +02:00
..
.gitignore orca runtime initial commit 2023-04-12 16:21:03 +02:00
README.md orca runtime initial commit 2023-04-12 16:21:03 +02:00
image.png orca runtime initial commit 2023-04-12 16:21:03 +02:00

README.md

WasmBoy

To run WasmBoy, you need a Gameboy ROM file. For example, you can download tobudx.gb (Tobu Tobu Girl ROM)

wasm3.wasm is a normal WASI build of Wasm3.

Run with Webassembly.sh

Drag'n'drop wasm3.wasm, wasmerboy.wasm, tobudx.gb to Webassembly.sh and run:

wasm3 /tmp/wasmerboy.wasm /tmp/tobudx.gb

To speed it up (at your own risk, this disables security features):

chromium-browser --no-sandbox --js-flags="--wasm-opt --wasm-no-bounds-checks --wasm-no-stack-checks" "https://webassembly.sh"

Run with Wasmer

mkdir fs
cp wasmerboy.wasm tobudx.gb ./fs
wasmer run --dir=fs --enable-experimental-io-devices wasm3.wasm -- fs/wasmerboy.wasm fs/tobudx.gb

Also

Check out Aaron Turner's article on Wasmer and WasmBoy.