• 1011 + 10010
= 11101:
|
| | | | | 1 | | |
| 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 |
+ | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
| 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 |
No overflow. Sum is correct.
| • 1010110 + 110100
= 10001010:
|
1 | 1 | 1 | | 1 | | | |
| 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 |
+ | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 |
No overflow. Sum is correct.
|
• 11001011 + 1011010
= 100100101:
1 |
1 | | 1 | 1 | | 1 | | |
| 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 |
+ | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 |
| 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 |
Overflow. The carry-out is discarded, and
the sum is not correct
|
• 1010001 + 11001
= 1101010:
|
| | 1 | | | | 1 | |
| 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 |
+ | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 |
| 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 |
No overflow. Sum is correct.
| • 110001 + 11100100
= 100010101:
1 |
1 | 1 | | | | | | |
| 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 |
+ | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 |
Overflow. The carry-out is discarded, and
the sum is not correct
|
• 10011011 + 1001010
= 11100101:
|
| | 1 | 1 | | 1 | | |
| 1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 |
+ | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 1 | 0 | 1 |
No overflow. Sum is correct.
|