project02 complete, add .gitignore

This commit is contained in:
2025-09-02 08:33:07 -04:00
parent e389939297
commit 2e8ebbbfd5
10 changed files with 37 additions and 27 deletions

View File

@@ -55,7 +55,8 @@ CHIP ALU {
Not16(in=y1, out=noty1);
Mux16(a=y1, b=noty1, sel=ny, out=y2);
// handle f (add or and)
// handle f (+ or &)
// do both ops here, is this wasteful? otherwise we run an or, but then we have to "predict"
Add16(a=x2, b=y2, out=addout);
And16(a=x2, b=y2, out=andout);
Mux16(a=andout, b=addout, sel=f, out=fout);