Skip to content

Commit 352d1f0

Browse files
committed
Add the suite files to make releases easier
1 parent 47ba3b3 commit 352d1f0

File tree

401 files changed

+84024
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

401 files changed

+84024
-3
lines changed

InstallDir/CPUEmulator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
cd `dirname $0`
3-
java -jar ../CPUEmulator/target/CPUEmulator-2.6-SNAPSHOT.jar $1
3+
java -jar ../CPUEmulator/target/CPUEmulator-*.jar $1

InstallDir/HardwareSimulator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
cd `dirname $0`
3-
java -jar ../HardwareSimulator/target/HardwareSimulator-2.6-SNAPSHOT.jar $@
3+
java -jar ../HardwareSimulator/target/HardwareSimulator-*.jar $@

InstallDir/VMEmulator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
cd `dirname $0`
3-
java -jar ../VMEmulator/target/VMEmulator-2.6-SNAPSHOT.jar $@
3+
java -jar ../VMEmulator/target/VMEmulator-*.jar $@

nand2tetris/projects/00/file.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
The only purpose of this file is to practice submitting files
2+
in the Nand to Tetris course websites in Coursera.
3+
4+
There is no need to modify the contents of this file.
5+
All you have to do is submit it as is, following the
6+
Project 0 guidelines in the website.

nand2tetris/projects/01/And.cmp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
| a | b | out |
2+
| 0 | 0 | 0 |
3+
| 0 | 1 | 0 |
4+
| 1 | 0 | 0 |
5+
| 1 | 1 | 1 |

nand2tetris/projects/01/And.hdl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// This file is part of www.nand2tetris.org
2+
// and the book "The Elements of Computing Systems"
3+
// by Nisan and Schocken, MIT Press.
4+
// File name: projects/01/And.hdl
5+
6+
/**
7+
* And gate:
8+
* out = 1 if (a == 1 and b == 1)
9+
* 0 otherwise
10+
*/
11+
12+
CHIP And {
13+
IN a, b;
14+
OUT out;
15+
16+
PARTS:
17+
// Put your code here:
18+
}

nand2tetris/projects/01/And.tst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// This file is part of www.nand2tetris.org
2+
// and the book "The Elements of Computing Systems"
3+
// by Nisan and Schocken, MIT Press.
4+
// File name: projects/01/And.tst
5+
6+
load And.hdl,
7+
output-file And.out,
8+
compare-to And.cmp,
9+
output-list a%B3.1.3 b%B3.1.3 out%B3.1.3;
10+
11+
set a 0,
12+
set b 0,
13+
eval,
14+
output;
15+
16+
set a 0,
17+
set b 1,
18+
eval,
19+
output;
20+
21+
set a 1,
22+
set b 0,
23+
eval,
24+
output;
25+
26+
set a 1,
27+
set b 1,
28+
eval,
29+
output;

nand2tetris/projects/01/And16.cmp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
| a | b | out |
2+
| 0000000000000000 | 0000000000000000 | 0000000000000000 |
3+
| 0000000000000000 | 1111111111111111 | 0000000000000000 |
4+
| 1111111111111111 | 1111111111111111 | 1111111111111111 |
5+
| 1010101010101010 | 0101010101010101 | 0000000000000000 |
6+
| 0011110011000011 | 0000111111110000 | 0000110011000000 |
7+
| 0001001000110100 | 1001100001110110 | 0001000000110100 |

nand2tetris/projects/01/And16.hdl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// This file is part of www.nand2tetris.org
2+
// and the book "The Elements of Computing Systems"
3+
// by Nisan and Schocken, MIT Press.
4+
// File name: projects/01/And16.hdl
5+
6+
/**
7+
* 16-bit bitwise And:
8+
* for i = 0..15: out[i] = (a[i] and b[i])
9+
*/
10+
11+
CHIP And16 {
12+
IN a[16], b[16];
13+
OUT out[16];
14+
15+
PARTS:
16+
// Put your code here:
17+
}

nand2tetris/projects/01/And16.tst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// This file is part of www.nand2tetris.org
2+
// and the book "The Elements of Computing Systems"
3+
// by Nisan and Schocken, MIT Press.
4+
// File name: projects/01/And16.tst
5+
6+
load And16.hdl,
7+
output-file And16.out,
8+
compare-to And16.cmp,
9+
output-list a%B1.16.1 b%B1.16.1 out%B1.16.1;
10+
11+
set a %B0000000000000000,
12+
set b %B0000000000000000,
13+
eval,
14+
output;
15+
16+
set a %B0000000000000000,
17+
set b %B1111111111111111,
18+
eval,
19+
output;
20+
21+
set a %B1111111111111111,
22+
set b %B1111111111111111,
23+
eval,
24+
output;
25+
26+
set a %B1010101010101010,
27+
set b %B0101010101010101,
28+
eval,
29+
output;
30+
31+
set a %B0011110011000011,
32+
set b %B0000111111110000,
33+
eval,
34+
output;
35+
36+
set a %B0001001000110100,
37+
set b %B1001100001110110,
38+
eval,
39+
output;

0 commit comments

Comments
 (0)