nd100x

🛠️ WebAssembly Build Setup

This project supports building to WebAssembly (WASM) for running in the browser.

✅ Prerequisites

Before building, make sure you have the following installed:

  1. CMake
    Install from https://cmake.org/download/

  2. Emscripten SDK (emsdk)
    Follow these steps to install and activate Emscripten:

    Important! Install this in its own folder, not inside nd100x !!

    git clone https://github.com/emscripten-core/emsdk.git
    cd emsdk
    ./emsdk install latest
    ./emsdk activate latest
    source ./emsdk_env.sh  # For Linux/macOS
    # On Windows: emsdk_env.bat
    

    ✅ This will install the Emscripten compiler and tools (like emcc, emcmake, etc.).

📦 Additional Notes


🏃 Getting the emulator ready to run in the browser

🚀 Running in the Browser

To test in a browser, you need to serve the files over HTTP (due to browser security restrictions). You can use Python’s simple HTTP server:

cd build-wasm
python3 -m http.server

Then open http://localhost:8000 in your browser.