This is a modified version of GAIA CPU simulator buildable with Emscripten.
Try it online at https://nullpo-head.github.io/emcc-gaia-simu/xv6.html.
GAIA is a CPU architecture we designed at the student experiment at The University of Tokyo.
To see the detail, visit https://github.com/wasabiz/gaia3
The original GAIA CPU simulator is at https://github.com/b-inary/gaia-software
A small Unix like OS for education created by MIT.
We ported xv6 to GAIA and created C89 compiler.
To see the detail, visit https://github.com/wasabiz/xv6
The site of original xv6 is at http://pdos.csail.mit.edu/6.828/2014/xv6.html
And to run,
and you can run sim.js with node by
node sim.js xv6.img