Binary Arithmetic Using Complement Codes

 

v                      Example  à high-magnitude reproduction

0]  0 1 1 0 1.  1    +

0]  0 1 0 1 1.  0

------------------------

0]  1 1 0 0 0.  1

 

v                      Observation

0  1 1 0 1.  1    +

0  1 0 1 1.  0

------------------------

1     1 0 0 0.  1  à Is the number negative?

Result is incorrect because overflow occurred.  There should always be enough positions to represent the result.