An open API service indexing awesome lists of open source software.

https://github.com/pygeek03/vm2hack

VM to Hack translator for Nand2Tetris
https://github.com/pygeek03/vm2hack

Last synced: 9 days ago
JSON representation

VM to Hack translator for Nand2Tetris

Awesome Lists containing this project

README

          

# 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).