Assembler for the Hack Language written in Typescript.
To see a list of available commands run:
npm run help
- go through all the Prerequisites in Prerequisites
npm i
install NPM dependenciesnpm run build:binaries
build the project binaries (output is in the bin folder).- if you are on MacOS or linux make the relevant binary executable.
./bin/hack-assembler-typescript-macos -i <path-to-your-input-assembly-file>
to run the assembler and output a hack file. Optionally add a custom output file withnpm run assemble -- -i <path-to-your-input-assembly-file> -o <path-to-your-ouput-file>
- An example of this could be
./bin/hack-assembler-typescript-macos -i ./hack-samples/Add.asm -o ~/Desktop/Add.hack
- An example of this could be