jeansberg / PythonVMTranslator

A virtual machine translator for the VM language defined in From NAND to Tetris"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

PythonVMTranslator

This is a virtual machine translator for the VM language defined in From NAND to Tetris Building a Modern Computer From First Principles (http://nand2tetris.org/)

It is a console application written in Python.

Operation

Execute VmTranslator.py with a command line parameter specifying the path to the .vm file you want to translate. The resulting .asm file will be saved in the same folder.

Tests

Run TranslationTests.py from a test runner to translate the .vm files in the "Test files" directory and compare the resulting .asm file with the corresponding .cmp file. The .cmp files have been verified with the Hack CPU emulator.

About

A virtual machine translator for the VM language defined in From NAND to Tetris"

License:GNU General Public License v3.0


Languages

Language:Python 100.0%