Add project 2 template files

This commit is contained in:
2025-08-30 19:47:34 -04:00
parent f43ce1f964
commit 4563dd234b
17 changed files with 1064 additions and 0 deletions

15
02/HalfAdder.hdl Normal file
View File

@@ -0,0 +1,15 @@
// 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/2/HalfAdder.hdl
/**
* Computes the sum of two bits.
*/
CHIP HalfAdder {
IN a, b; // 1-bit inputs
OUT sum, // Right bit of a + b
carry; // Left bit of a + b
PARTS:
//// Replace this comment with your code.
}