This repo contains my projects for the Nand2Tetris course.
The goal of this course is to create a modern, full-scale computer system from scratch, including hardware and software.
As part of this course, I've created these different software projects:
The Hack Assambler is used to convert code written in the Hack Assembly Language to bytecode (the Hack Machine Language).
The HackVM Translator is used to convert code written in the Hack VM Language to the Hack Assembly Language.
The Jack Compiler is used to convert code written in the Jack Language to the HackVM Language.
NAND2TETRIS ├── packages │ ├── assembler │ ├── compiler │ └── translator └── weeks # course files
To use these different programs:
-
Ensure you have all of these installed:
-
Install all dependencies by running
$ yarn
in this folder -
Run the desired project:
$ yarn assembler ./../someAssemblyCode.asm
$ yarn translator ./../SomeVMCode.vm
$ yarn compiler ./../AFolderWithVMCode
The results will be stored in the folder/next to the file you specified.