nes_rust_wasm
nes_rust_wasm is a WebAssembly NES emulator based on nes-rust.
How to install
$ npm install nes_rust_wasm
How to use
const nes = WasmNes;nes; const pixels = 256 * 240 * 4; // Audio example code is T.B.D.const audioBuffer = 4096; const runFrame = { ; nes; nes; // Render pixels}; nes;;
API
Refer to the comments in WasmNes
How to build WebAssembly RISC-V emulator locally
Prerequirements
- Install wasm-bindgen client
$ git clone https://github.com/takahirox/nes-rust.git$ cd nes-rust/wasm$ bash build.sh