Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 526 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 526 Bytes

LICENSE

VM-to-assembler-translator

A simple implementation that translates VM code to hack assembly code

compile:

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

run:

./main.out test.vm 

will generate test.asm (with same name)

Debug with extra info:

./main.out test.vm -v

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