Last month, Go 1.11 was released and WebAssembly was experimentally supported.
Since the emulator I’m developing is also written in Go, I took this opportunity to
port it to WebAssembly.
Simply compiling Go to WebAssembly uses the browser console as standard output,
but I wanted to output to a div tag, so I manipulated the DOM using the syscall/js package.
No other changes were necessary.
It’s published at https://bobuhiro11.net/tiny_x86_emu/.
It’s still a work in progress, and development on user process execution has been stalled, so I should start working on that soon.
