UE1 & UE2 Web Emulators
TypeScript, React, Emulation, WebAssembly
Browser emulators and IDEs for the UE1 and UE2, two vacuum tube computers built by David Lovett of Usagi Electric. Written in TypeScript and React. You write assembly in a Monaco editor, and customasm, compiled to WebAssembly, assembles it as you type. Then you step through it or run it at any tick rate, with breakpoints.
UE1
Try it in your browser · View Source
The UE1 is a 1-bit machine. The front panel shows its scratch, output and result registers as lights, and toggle switches drive the input. The assembler accepts David’s own UE1 source files as they are. Above, the Fibonacci example runs at 40 Hz and shows each number on the output lights.
UE2
Try it in your browser · View Source
The UE2 works on whole words and has only eight instructions. It has a new emulator core, a register view and a virtualized memory viewer. Above, a prime finder built from those eight instructions runs at 8 kHz and writes the first 20 primes to memory.