Hack machine VM Translator
Description
This is a vm translator written in rust to facilitate the translation of the supported vm command to its associated Hack's assembly instruction.
I have ensured the translator documents each processed command to make debugging easier.
Version 2: Stage 2 translator
- provide stack pointers initialization requirements
- provide jump statement requirment
- function init and goto statement
- conditional goto
- testing with recursion
Usage
&& && &&
Where
VM_FILE_PATH.vm: a path leading to file to translate
NOTE
The output file is stored in VM_FILE_PATH.asm.