19 lines
347 B
Plaintext
19 lines
347 B
Plaintext
|
// 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;
|
||
|
}
|
||
|
|