Chips › Processors › Fantasy & virtual CPUs › WASM-4
WASM-4
2021
A fantasy console that runs games built as WebAssembly modules within a fixed, minimal 160x160 framebuffer and memory layout.
WASM-4 Online Emulator
Play WASM-4 using WebAssembly directly in your browser.
Controls
Arrow keys move; X rotates / confirms (button 1); Z is button 2. The on-screen pad drives the same gamepad. Open the debugger (or add ?debug) to inspect the console memory and gamepad state; Reboot restarts the cart.
Configurations
| Configuration | Emulator | Machine | OS | Legal | |
|---|---|---|---|---|---|
| Watris | WASM-4 | WASM-4 | open | Open ⛶ |
Downloads - ROMs & software
| Title | Type | Size (bytes) | Legal | |
|---|---|---|---|---|
| Watris | game | 2628 | open | Download ↓ |
Machines
Emulators
| Emulator | Type | License | Site |
|---|---|---|---|
| WASM-4 | both | ISC | Website ↗ |
Reference & documentation
External technical references for programming WASM-4 and for writing emulators.
| Resource | Type | Notes |
|---|---|---|
| WASM-4 Saving Data Guide ↗ | Format | diskr/diskw 1024-byte persistent storage layout |
| WebAssembly Core Specification ↗ | Instruction set | Bytecode/binary format that WASM-4 cartridges execute |
| WASM-4 Memory Layout ↗ | Memory map | Full 64KB memory map, registers, framebuffer addresses |
| WASM-4 Sound System Guide ↗ | Programming | 4-channel APU: tone(), ADSR, duty cycle, panning |
| WASM-4 User Input Guide ↗ | Programming | Gamepad bit flags and mouse/touch registers |
| WASM-4 Functions Reference ↗ | Reference | Complete host API: blit, line, rect, tone, disk |
| WASM-4 Introduction & Docs ↗ | Reference | Console overview: specs, display, RAM, cartridge limits |
| WASM-4 Source Code (aduros/wasm4) ↗ | Source | Official runtimes, CLI, devtools and test games |