initial
This commit is contained in:
18
tools/builtInChips/Add16.hdl
Normal file
18
tools/builtInChips/Add16.hdl
Normal file
@@ -0,0 +1,18 @@
|
||||
// This file is part of www.nand2tetris.org
|
||||
// and the book "The Elements of Computing Systems"
|
||||
// by Nisan and Schocken, MIT Press.
|
||||
// File name: tools/builtIn/Add16.hdl
|
||||
|
||||
/*
|
||||
* Adds two 16-bit values.
|
||||
* The most significant carry bit is ignored.
|
||||
*/
|
||||
|
||||
CHIP Add16 {
|
||||
|
||||
IN a[16], b[16];
|
||||
OUT out[16];
|
||||
|
||||
BUILTIN Add16;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user