The Hack Computer Platform. It includes an assembler, virtual machine and a compiler.
Install with npm
directly from the GitHub repository. Now 3 binaries in total will be available on your PATH
, one for each program.
npm install -g git://github.com/jonathantorres/hack
At least Node.js 18 is required.
Run the binary with asm
and specify the assembly file(s) that you would like to assemble.
asm <path to .asm file>
Run the binary with vm
and specify the virtual machine file(s) that you would like to translate.
vm <path to .vm file>
Run the binary with jack
and specify the Jack file(s) that you would like to compile.
jack <path to .jack file>
MIT