1 | 1 | 1 | 1 | |||||
1 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | |
+ | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 |
0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 |
Carryout without overflow. Sum is Correct.
104 + 45 = 149:
10 + -3 = 7:
-1 + 1 = 0:
104 + 45 = 149:
1 | 1 | 1 | ||||||
0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | |
+ | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 |
1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 |
Overflow, no carryout. Sum is not correct.
10 + -3 = 7:
1 | 1 | 1 | 1 | 1 | ||||
0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | |
+ | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 |
0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 |
Carryout without overflow. Sum is correct.
-1 + 1 = 0:
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |
+ | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Carryout without overflow. Sum is correct.
No comments:
Post a Comment