This is a VM translator program created as part of the Nand to Tetris course. The VM translator translates code written in the Hack VM language into Hack assembly language, making it executable on the Nand2Tetris Hardware Simulator.
- Translates VM code to Hack assembly code
- Supports the Hack VM language's instruction set
- Provides efficient and accurate code translation
- Offers options for specifying input and output files
-
Clone or download this repository to your local machine.
-
Compile the VM translator source code if necessary.
-
Create or obtain a VM code file with a
.vm
extension. -
Run the VM translator, specifying the input VM file as an argument.
-
The VM translator will generate an output assembly file with a
.asm
extension, which can be executed on the Nand2Tetris Hardware Simulator.
To get started with the Nand to Tetris course, follow these steps:
- Visit the Nand to Tetris website for course materials and resources.
- Download the Nand2Tetris Software Suite to access the Hardware Simulator and other tools.
- Follow the course instructions to complete the projects, including the VM Translator project.
Contributions are welcome! If you'd like to contribute to this project, please follow the standard GitHub fork and pull request workflow.
This project is licensed under the MIT License - see the LICENSE file for details.
- The Nand to Tetris course instructors and authors for creating this educational program.
If you have any questions or need further assistance, feel free to contact me at [[email protected]].
Happy translating with your VM Translator project!