feat: change files

This commit is contained in:
2026-01-14 11:08:29 +01:00
parent 7f6ebd1edf
commit ad9f301859
18 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
// 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.hdl
/**
* Multiplexor:
* if (sel = 0) out = a, else out = b
*/
CHIP Mux {
IN a, b, sel;
OUT out;
PARTS:
Not(in=sel,out=notSel);
And(a= a, b= notSel, out= andA);
And(a= b, b= sel, out= andB);
Xor(a= andA , b= andB, out=out );
}