Should have been an "if" in there:
"So [if] the ALU is to compute -x, where [the input value of] x = -2"
I meant that the value of 'out' was to be the
arithmetic computation -x. This is what the ALU would be computing for the the Hack assembly language command D=-D, for example.
The steps that follow show how using NOT with addition can result in the arithmetic negative operation, turning -2 input value to +2 output value.
The
ALU worksheet will help you understand this.
When you are doing this worksheet, remember that nx, ny and no = 1 means NOT.
(Hint: You ALU.hdl will Use Not16 chips as part of the nx, ny and no processing.)
--Mark