Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 436 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 436 Bytes

VM2Hack

VM to Hack translator for Nand2Tetris course

Quick start:

After cloning this repo, in the terminal, type

python3 VMTranslator [filename].vm

to translate [filename].vm (in Nand2Tetris' VM code) to [filename].asm (in Nand2Tetris' Hack assembly), or

python3 VMTranslator [directory]

to translate all .vm files in [directory] to a single [directory].asm file (this file will be placed inside the directory).