Skip to content

LevyHsu/VM-to-assembler-translator

Repository files navigation

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)

About

A Hack virtual machine language to hack assembly language translator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages