VM Translator

I've created a program that translates Jack Virtual Machine Language to the Hack Assembly Language.


The VMTranslator program is run from the command line with the arguments needed for the program to run. You use the program as follows:

"java -jar ./VMTranslator.jar ./[file.vm/ folder name]"


How does the VM Translator work?

The current version of the VM Translator parses the given file or folder and processes this parsed data into Hack Assembly Language instructions. These instructions get written to a file with the same name as the file or folder.

The vm commands                                                                                         The translated Hack Assembly Langauge instructions














How does the VM Translator work under the hood?

Once the VM Translator starts execution it starts by looping through each line of the given file or folder. First, a line gets parsed, after the parse the parsed data get translated to a Hack Assembly Language instruction. This translation gets written to a file. Once this is done the process repeats till we reached the end of the given file(s).

Language: ​Java

Role: Programmer

Teamsize: 1