Changeset 7f0d3feedb0b…
Parent a89509a1dd5a…
by Benjamin Pollack
Changes to one file · Browse files at 7f0d3feedb0b Showing diff from parent a89509a1dd5a Diff from another changeset...
@@ -16,5 +16,16 @@ OUT a, b, c, d;
PARTS:
- // Put your code here:
-}
\ No newline at end of file+ Not(in=sel[0], out=notsel0);
+ Not(in=sel[1], out=notsel1);
+
+ And(a=notsel1, b=notsel0, out=picka);
+ And(a=notsel1, b=sel[0], out=pickb);
+ And(a=sel[1], b=notsel0, out=pickc);
+ And(a=sel[1], b=sel[0], out=pickd);
+
+ And(a=in, b=picka, out=a);
+ And(a=in, b=pickb, out=b);
+ And(a=in, b=pickc, out=c);
+ And(a=in, b=pickd, out=d);
+}
|
Loading...