-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.txt
43 lines (32 loc) · 2.31 KB
/
help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
-> Add ~/Desktop/nand2tetris/tools to PATH in ~/.bash_profile
-> To start
Hardware Simulator HardwareSimulator.sh
CPU Emulator CPUEmulator.sh
Assembler Assembler.sh
VM Emulator VMEmulator.sh
Jack Compiler JackCompiler.sh
-> How to zip files and submit
zip -xj projectx.zip files
-> Translator to Assembler
cd /Users/svigne1/Desktop/nand2tetris/projects/07
python3 VM_Translator_complex_and_minified.py
python3 ../06/assembler.py test.asm > test.hack
-> To translate all files at once
find ./07 | grep .vm | sed 's/^..//g' | sed -e 's/^/python3 VMTranslator\/VMTranslator.py /'
1. find . -> gives all files with full path from current directory
2. grep .vm
3. sed 's/^..//g' -> Removes the first two characters (./) from every line in the output
4. sed -e 's/^/python3 VMTranslator.py /' -> Adds the prefix python3 VMTranslator to every line.
-> Compiling Project7 & Project8
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/07/StackArithmetic/SimpleAdd/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/07/StackArithmetic/StackTest/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/07/MemoryAccess/PointerTest/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/07/MemoryAccess/StaticTest/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/07/MemoryAccess/BasicTest/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/08/ProgramFlow/BasicLoop/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/08/ProgramFlow/FibonacciSeries/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/08/FunctionCalls/StaticsTest/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/08/FunctionCalls/SimpleFunction/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/08/FunctionCalls/FibonacciElement/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/08/FunctionCalls/AddFunction/
python3 Translator-Code/VMTranslator.py /Users/svigne1/Desktop/nand2tetris/projects/08/FunctionCalls/NestedCall/