Your first computer
A wasm computer is built like a Lua one. The EEPROM holds a BIOS, and the BIOS boots an operating system from a disk.
- Build a computer as usual: a case, CPU, RAM, GPU, screen and keyboard. One tier 1 stick runs the shell and a program; programs that run other programs need more. See Hardware.
- Switch the CPU to WebAssembly. Sneak and right-click the CPU item until its tooltip says WebAssembly (wackasm), then put it in the case.
- Insert an EEPROM (WebAssembly BIOS). Craft an EEPROM with a piece of paper (shapeless), or take one from the OpenComputers creative tab.
- Insert the wackasm shell floppy. Craft a floppy disk with a piece of paper, or take it from the creative tab.
- Turn it on. The BIOS binds the GPU to the screen, finds
/init.wasm, beeps, and starts the shell.
Add a hard drive if you want to save files: the shell floppy is read-only, so programs write to the first writable disk. See Files and directories.
Boot errors
Section titled “Boot errors”The errors are the ones Lua players know:
| message | meaning |
|---|---|
no bios found; install a configured EEPROM |
there is no EEPROM in the computer |
EEPROM does not contain a WebAssembly BIOS |
the EEPROM holds something else, such as a Lua BIOS |
no bootable medium found: <reason> |
no disk has a /init.wasm that loads |
Like the Lua BIOS, the wasm BIOS remembers which disk it booted from (in the
EEPROM’s data) and tries that disk first next time. Any disk with a
/init.wasm boots, so you can replace the shell with your own program; see
Custom BIOS and init.