Spacewasm! a PDP-1 emulator in Zig + Wasm + JS

The PDP-1 computer is a favorite of mine (18-bit words, one’s complement, <30 instructions, simple I/O mechanism, etc.).

I wrote an emulator for this machine in Zig and made it run Spacewar!, one of the first video games.
The only platform it currently supports is wasm + JS + HTML5.

As it is almost always the case, it was heavily inspired by

It is still not feature complete and has a couple of bugs, but I thought I should share it.