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
- Host: GitHub
- URL: https://github.com/pygeek03/vm2hack
- Owner: PyGeek03
- License: gpl-3.0
- Created: 2020-01-15T06:02:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-17T14:04:30.000Z (over 6 years ago)
- Last Synced: 2025-11-12T01:24:34.700Z (9 months ago)
- Language: Python
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).