This is literally a week-long project. I was playing around with compilers and wanted to target my own platform. So writing an emulator was the next logical step (don't even ask). Anyway, I wrote an assembler and virtual cpu for it.
It's not difficult to run. Nodejs > 14.2.
pnpm i
pnpx tsc
- Run it:
node --es-module-specifier-resolution=node ./build/asm/cli.js
node --es-module-specifier-resolution=node ./build/vm/cli.js