Home | Department of Computer Science

In binary, we add the bits in the zero power position, possibly carry, and then add the bits in the one power, possibly carry, and so on. Add 21 and 12. ... 2's comp is 11111111 11111001 (this is -7) To get -20. 20 is 00000000 00010100. 1's comp is 11111111 11101011. 2's comp is 11111111 11101100 (this is -20) ... ................
................