lazyxu / wasm-nes

A NES emulator written in C that runs in the browser with WebAssembly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wasm-nes

wasm-nes is a NES emulator written in C that runs in the browser with WebAssembly.

Quick Start

Setup Emscripten Environment

Get the Emscripten SDK, using these instructions: https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html

It is recommended to put the emsdk folder in the HOME directory.

Getting the sources

git clone https://github.com/MeteorKL/wasm-nes
cd wasm-nes

Build and run

you can execute the scripts(tools/run_xxx.sh) to build and run in one click.

NATIVE executable file

bash ./tools/run_native.sh

WASM and JavaScript "glue" code

bash ./tools/run_wasm.sh

open http://localhost:1111/.

Tests

test list: https://wiki.nesdev.com/w/index.php/Emulator_tests

test passed:

[x] nestest

Docs

Emulators

About

A NES emulator written in C that runs in the browser with WebAssembly

License:MIT License


Languages

Language:C 89.5%Language:CMake 3.8%Language:Shell 3.7%Language:HTML 2.1%Language:JavaScript 0.8%