Interactive Wassembler
Help
- The first text area is editable. Hit "Eval" to recompile.
- Supported types: i32, f32, f64, and void.
- Semi-supported types: i64 - wrong answers for bit values. i8 and i16 - no constants, yet.
- Basic arithmetic binary operators and comparisons are supported.
- if, while, and return are supported.
- memory name #size align #alignment; statically allocates memory.
- loadI32(addr) and storeI32(addr, value) are memory accesses, and there are variants for other types.
- Prefixing a function with "export" makes it visible to JS.
- import func name(argtypes) returntype; declares a binding to a JS function.