Two's Complement
Learn how the two's complement solves both problems of SMR.
How two’s complement solves problems
The two’s complement solves both problems of SMR. First, it allows the CPU adder to operate negative numbers in one step. We need two steps for that when using the one’s complement. Second, the two’s complement has only one way to represent zero.
Positive integers in the two’s complement and SMR look the same. The highest-order bit equals zero. The remaining bits store the number.
Negative integers in the two’s complement have the ...
Access this course and 1400+ top-rated courses and projects.