PPT Slide
Overflow (Patterson)
Examples: 7 + 3 = 10 but ... - 4 - 5 = - 9 but ...
2’s Complement
Binary
Decimal
0
0000
1
0001
2
0010
3
0011
0000
1111
1110
1101
Decimal
0
-1
-2
-3
4
0100
5
0101
6
0110
7
0111
1100
1011
1010
1001
-4
-5
-6
-7
1000
-8
0
1
1
1
0
0
1
1
+
1
0
1
0
1
1
1
0
0
1
0
1
1
+
0
1
1
1
1
1
0
7
3
1
- 6
- 4
- 5
7
Previous slide
Next slide
Back to first slide
View graphic version