1.0.2 • Published 11 years ago
hack_assembler v1.0.2
HACK computer's Assembler
Introduction
This is the project 6 in the course: nand2tetris.
It can translate the
HACKmachine language to binary code which can run on theHACKcomputer.As you see, this project is implemented with
node.js.Maybe it's not perfect now, but I believe it will be.
Usage
npm install: to install the dependencynode assembler.js FILE_NAME: And you will see theFILE_NAME.hackfile in the same dir of the source file.
Testing
I've written all of the tests with the framework
mocha. So if you want to make the testing script much better you should isntall mocha first which it's quite simple to do.Just type
sudo npm install -g mochanpm test: To run all of the testAll the tesing scripts are in the
test_suite.js