all repos — nand2tetris @ ed7d30be0e3d7419b78068af7893f4a5b911f458

my nand2tetris progress

Re-do HalfAdder.hdl and FullAdder.hdl
x1phosura x1phosura@x1phosura.zone
Sun, 28 Nov 2021 20:42:21 -0800
commit

ed7d30be0e3d7419b78068af7893f4a5b911f458

parent

d6683af6ad2b2f40cbabd16264e4efbdb609a340

3 files changed, 18 insertions(+), 3 deletions(-)

jump to
M projects/02/FullAdder.hdlprojects/02/FullAdder.hdl

@@ -13,5 +13,7 @@ OUT sum, // Right bit of a + b + c

carry; // Left bit of a + b + c PARTS: - // Put you code here: -}+ HalfAdder(a=a, b=b, sum=sum1, carry=carry1); + HalfAdder(a=sum1, b=c, sum=sum, carry=carry2); + Xor(a=carry1, b=carry2, out=carry); +}
M projects/02/HalfAdder.hdlprojects/02/HalfAdder.hdl

@@ -13,5 +13,6 @@ OUT sum, // Right bit of a + b

carry; // Left bit of a + b PARTS: - // Put you code here: + Xor(a=a, b=b, out=sum); + And(a=a, b=b, out=carry); }
A projects/02/PROGRESS.md

@@ -0,0 +1,12 @@

+ +# Progress + +## TODO +Add16 +ALU +FullAdder +Inc16 + +## DONE +HalfAdder +