Login  Register

Re: ALU Help

Posted by cadet1620 on Sep 14, 2016; 11:22am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/ALU-Help-tp4030242p4030255.html

"Bit-wise" means one bit at a time, just like the And16.hdl chip that you made in project 1.
Use the 1-bit AND operation for each bit position in the inputs to generate the corresponding output bit.

11011010 AND 10010111 = 10010010:
    1 1 0 1 1 0 1 0
AND 1 0 0 1 0 1 1 1
    ---------------
    1 0 0 1 0 0 1 0
--Mark