hack_assembler
v1.0.2
Published
This assembler is for the course nand2tetris project 6 which is implemented in javascript.
Downloads
15
Readme
HACK computer's Assembler
Introduction
This is the project 6 in the course: nand2tetris.
It can translate the
HACK
machine language to binary code which can run on theHACK
computer.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.hack
file 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 mocha
npm test
: To run all of the testAll the tesing scripts are in the
test_suite.js