Hack machine Assembler

A simple implementation of assembler for hack machine language in C++

 

Github: https://github.com/LevyHsu/Hack-Assembler
See : http://www.nand2tetris.org/06.php

Compile:

g++ -g -std=c++11 -Wall -pedantic -o main.out *.cpp

 

run:

./main.out test.asm

will generate test.hack (with same name)

 

Debug with extra info:

./main.out test.asm -v

 

All the white spaces and comments are ignored (content after // in any single line)

[wpedon id=”461″ align=”center”]

Categories:

Leave a Reply

Your email address will not be published. Required fields are marked *