-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
741 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| a | b |out| | ||
| 0 | 0 | 0 | | ||
| 0 | 1 | 0 | | ||
| 1 | 0 | 0 | | ||
| 1 | 1 | 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// This file is part of www.nand2tetris.org | ||
// and the book "The Elements of Computing Systems" | ||
// by Nisan and Schocken, MIT Press. | ||
// File name: projects/1/And.tst | ||
|
||
load And.hdl, | ||
output-file And.out, | ||
compare-to And.cmp, | ||
output-list a b out; | ||
|
||
set a 0, | ||
set b 0, | ||
eval, | ||
output; | ||
|
||
set a 0, | ||
set b 1, | ||
eval, | ||
output; | ||
|
||
set a 1, | ||
set b 0, | ||
eval, | ||
output; | ||
|
||
set a 1, | ||
set b 1, | ||
eval, | ||
output; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
| a | b | out | | ||
| 0000000000000000 | 0000000000000000 | 0000000000000000 | | ||
| 0000000000000000 | 1111111111111111 | 0000000000000000 | | ||
| 1111111111111111 | 1111111111111111 | 1111111111111111 | | ||
| 1010101010101010 | 0101010101010101 | 0000000000000000 | | ||
| 0011110011000011 | 0000111111110000 | 0000110011000000 | | ||
| 0001001000110100 | 1001100001110110 | 0001000000110100 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// This file is part of www.nand2tetris.org | ||
// and the book "The Elements of Computing Systems" | ||
// by Nisan and Schocken, MIT Press. | ||
// File name: projects/1/And16.tst | ||
|
||
load And16.hdl, | ||
output-file And16.out, | ||
compare-to And16.cmp, | ||
output-list a%B1.16.1 b%B1.16.1 out%B1.16.1; | ||
|
||
set a %B0000000000000000, | ||
set b %B0000000000000000, | ||
eval, | ||
output; | ||
|
||
set a %B0000000000000000, | ||
set b %B1111111111111111, | ||
eval, | ||
output; | ||
|
||
set a %B1111111111111111, | ||
set b %B1111111111111111, | ||
eval, | ||
output; | ||
|
||
set a %B1010101010101010, | ||
set b %B0101010101010101, | ||
eval, | ||
output; | ||
|
||
set a %B0011110011000011, | ||
set b %B0000111111110000, | ||
eval, | ||
output; | ||
|
||
set a %B0001001000110100, | ||
set b %B1001100001110110, | ||
eval, | ||
output; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|in |sel| a | b | | ||
| 0 | 0 | 0 | 0 | | ||
| 0 | 1 | 0 | 0 | | ||
| 1 | 0 | 1 | 0 | | ||
| 1 | 1 | 0 | 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// This file is part of www.nand2tetris.org | ||
// and the book "The Elements of Computing Systems" | ||
// by Nisan and Schocken, MIT Press. | ||
// File name: projects/1/DMux.tst | ||
|
||
load DMux.hdl, | ||
output-file DMux.out, | ||
compare-to DMux.cmp, | ||
output-list in sel a b; | ||
|
||
set in 0, | ||
set sel 0, | ||
eval, | ||
output; | ||
|
||
set sel 1, | ||
eval, | ||
output; | ||
|
||
set in 1, | ||
set sel 0, | ||
eval, | ||
output; | ||
|
||
set sel 1, | ||
eval, | ||
output; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|in | sel | a | b | c | d | | ||
| 0 | 00 | 0 | 0 | 0 | 0 | | ||
| 0 | 01 | 0 | 0 | 0 | 0 | | ||
| 0 | 10 | 0 | 0 | 0 | 0 | | ||
| 0 | 11 | 0 | 0 | 0 | 0 | | ||
| 1 | 00 | 1 | 0 | 0 | 0 | | ||
| 1 | 01 | 0 | 1 | 0 | 0 | | ||
| 1 | 10 | 0 | 0 | 1 | 0 | | ||
| 1 | 11 | 0 | 0 | 0 | 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// This file is part of www.nand2tetris.org | ||
// and the book "The Elements of Computing Systems" | ||
// by Nisan and Schocken, MIT Press. | ||
// File name: projects/1/DMux4Way.tst | ||
|
||
load DMux4Way.hdl, | ||
output-file DMux4Way.out, | ||
compare-to DMux4Way.cmp, | ||
output-list in sel%B2.2.2 a b c d; | ||
|
||
set in 0, | ||
set sel %B00, | ||
eval, | ||
output; | ||
|
||
set sel %B01, | ||
eval, | ||
output; | ||
|
||
set sel %B10, | ||
eval, | ||
output; | ||
|
||
set sel %B11, | ||
eval, | ||
output; | ||
|
||
set in 1, | ||
set sel %B00, | ||
eval, | ||
output; | ||
|
||
set sel %B01, | ||
eval, | ||
output; | ||
|
||
set sel %B10, | ||
eval, | ||
output; | ||
|
||
set sel %B11, | ||
eval, | ||
output; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|in | sel | a | b | c | d | e | f | g | h | | ||
| 0 | 000 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 0 | 001 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 0 | 010 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 0 | 011 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 0 | 100 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 0 | 101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 0 | 110 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 0 | 111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 1 | 000 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 1 | 001 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
| 1 | 010 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | | ||
| 1 | 011 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | | ||
| 1 | 100 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | | ||
| 1 | 101 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | | ||
| 1 | 110 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | | ||
| 1 | 111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// This file is part of www.nand2tetris.org | ||
// and the book "The Elements of Computing Systems" | ||
// by Nisan and Schocken, MIT Press. | ||
// File name: projects/1/DMux8Way.tst | ||
|
||
load DMux8Way.hdl, | ||
output-file DMux8Way.out, | ||
compare-to DMux8Way.cmp, | ||
output-list in sel%B2.3.2 a b c d e f g h; | ||
|
||
set in 0, | ||
set sel %B000, | ||
eval, | ||
output; | ||
|
||
set sel %B001, | ||
eval, | ||
output; | ||
|
||
set sel %B010, | ||
eval, | ||
output; | ||
|
||
set sel %B011, | ||
eval, | ||
output; | ||
|
||
set sel %B100, | ||
eval, | ||
output; | ||
|
||
set sel %B101, | ||
eval, | ||
output; | ||
|
||
set sel %B110, | ||
eval, | ||
output; | ||
|
||
set sel %B111, | ||
eval, | ||
output; | ||
|
||
set in 1, | ||
set sel %B000, | ||
eval, | ||
output; | ||
|
||
set sel %B001, | ||
eval, | ||
output; | ||
|
||
set sel %B010, | ||
eval, | ||
output; | ||
|
||
set sel %B011, | ||
eval, | ||
output; | ||
|
||
set sel %B100, | ||
eval, | ||
output; | ||
|
||
set sel %B101, | ||
eval, | ||
output; | ||
|
||
set sel %B110, | ||
eval, | ||
output; | ||
|
||
set sel %B111, | ||
eval, | ||
output; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
| a | b |sel|out| | ||
| 0 | 0 | 0 | 0 | | ||
| 0 | 0 | 1 | 0 | | ||
| 0 | 1 | 0 | 0 | | ||
| 0 | 1 | 1 | 1 | | ||
| 1 | 0 | 0 | 1 | | ||
| 1 | 0 | 1 | 0 | | ||
| 1 | 1 | 0 | 1 | | ||
| 1 | 1 | 1 | 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// This file is part of www.nand2tetris.org | ||
// and the book "The Elements of Computing Systems" | ||
// by Nisan and Schocken, MIT Press. | ||
// File name: projects/1/Mux.tst | ||
|
||
load Mux.hdl, | ||
output-file Mux.out, | ||
compare-to Mux.cmp, | ||
output-list a b sel out; | ||
|
||
set a 0, | ||
set b 0, | ||
set sel 0, | ||
eval, | ||
output; | ||
|
||
set sel 1, | ||
eval, | ||
output; | ||
|
||
set a 0, | ||
set b 1, | ||
set sel 0, | ||
eval, | ||
output; | ||
|
||
set sel 1, | ||
eval, | ||
output; | ||
|
||
set a 1, | ||
set b 0, | ||
set sel 0, | ||
eval, | ||
output; | ||
|
||
set sel 1, | ||
eval, | ||
output; | ||
|
||
set a 1, | ||
set b 1, | ||
set sel 0, | ||
eval, | ||
output; | ||
|
||
set sel 1, | ||
eval, | ||
output; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
| a | b |sel| out | | ||
| 0000000000000000 | 0000000000000000 | 0 | 0000000000000000 | | ||
| 0000000000000000 | 0000000000000000 | 1 | 0000000000000000 | | ||
| 0000000000000000 | 0001001000110100 | 0 | 0000000000000000 | | ||
| 0000000000000000 | 0001001000110100 | 1 | 0001001000110100 | | ||
| 1001100001110110 | 0000000000000000 | 0 | 1001100001110110 | | ||
| 1001100001110110 | 0000000000000000 | 1 | 0000000000000000 | | ||
| 1010101010101010 | 0101010101010101 | 0 | 1010101010101010 | | ||
| 1010101010101010 | 0101010101010101 | 1 | 0101010101010101 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// This file is part of www.nand2tetris.org | ||
// and the book "The Elements of Computing Systems" | ||
// by Nisan and Schocken, MIT Press. | ||
// File name: projects/1/Mux16.tst | ||
|
||
load Mux16.hdl, | ||
output-file Mux16.out, | ||
compare-to Mux16.cmp, | ||
output-list a%B1.16.1 b%B1.16.1 sel out%B1.16.1; | ||
|
||
set a 0, | ||
set b 0, | ||
set sel 0, | ||
eval, | ||
output; | ||
|
||
set sel 1, | ||
eval, | ||
output; | ||
|
||
set a %B0000000000000000, | ||
set b %B0001001000110100, | ||
set sel 0, | ||
eval, | ||
output; | ||
|
||
set sel 1, | ||
eval, | ||
output; | ||
|
||
set a %B1001100001110110, | ||
set b %B0000000000000000, | ||
set sel 0, | ||
eval, | ||
output; | ||
|
||
set sel 1, | ||
eval, | ||
output; | ||
|
||
set a %B1010101010101010, | ||
set b %B0101010101010101, | ||
set sel 0, | ||
eval, | ||
output; | ||
|
||
set sel 1, | ||
eval, | ||
output; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
| a | b | c | d | sel | out | | ||
| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 00 | 0000000000000000 | | ||
| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 01 | 0000000000000000 | | ||
| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 10 | 0000000000000000 | | ||
| 0000000000000000 | 0000000000000000 | 0000000000000000 | 0000000000000000 | 11 | 0000000000000000 | | ||
| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 00 | 0001001000110100 | | ||
| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 01 | 1001100001110110 | | ||
| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 10 | 1010101010101010 | | ||
| 0001001000110100 | 1001100001110110 | 1010101010101010 | 0101010101010101 | 11 | 0101010101010101 | |
Oops, something went wrong.