order of operations in ALU
Posted by John Douma on Dec 21, 2010; 5:28pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/order-of-operations-in-ALU-tp2127032.html
The specification of the ALU seems to be vague concerning the negation and zeroing of bits. For example, if x is -1, i.e. 16 bits all equal to 1 and we specify zx = 1 and nx =1, which should occur first? If I zero, then negate I get -1 but if I negate and then zero I get 0.