Login  Register

Re: Not16 failure in building the ALU

Posted by hcc on Nov 18, 2012; 3:39pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Not16-failure-in-building-the-ALU-tp4025519p4025632.html

I observe something odd:

If I include in ALU.hdl file only:
        Not16(in=y,out=out);
out shows the right value

If I include in ALU.hdl file only:
        Not16(in=y,out=noty);
Noty is always -1;

If I have both:
        Not16(in=y,out=out);
             Not16(in=y,out=noty);
then both out and outy are right.