This repo contains my implementation of the first project from Nand2Tetris (part 2), which converts VM code into Hack assembly code.
To run the code:
python3 ./vmtranslator/vmtranslator.py ./MemoryAccess/BasicTest/BasicTest.vm
- Run the VM programme in the VM emulator to understand what it is doing
- Use your translator to generate the assembly code • it can be helpful to output comments containing the VM code so it's easier to debug later
- Load ...
.tst
file into the CPU emulator and inspect results (cant use.asm
file as there are some initialization steps we need but haven't done in this project)