UCom Worksheet 6 Binary Addition
UCom Worksheet 6 Binary Addition
Worksheet 6
Using the rules (a)-(e) of binary addition below as a guide, work out the
answers to questions 1-10.
(a) 0+0=0
(b) 0+1=1
(c) 1+0=1
(d) 1 + 1 = 0 Carry 1 = 10
(e) 1 + 1 + 1 = 1 Carry 1 = 11
1: Start with this simple sum. (You can use rules (a) and (b) to help you if necessary.) Calculate the
decimal equivalent and check that it is correct.
8 4 2 1 Decimal
0 0 1 1 = 3
+ 1 0 0 0 = + 8
= 1 0 1 1 = = 11
2: Use the same techniques as you did in the last question to find the binary result.
1 0 0 1
+ 0 1 0 0
= 1 1 0 1
1
1 0 1 1
+ 0 0 1 0
= 1 1 0 1
4: Now use rule (d) to help with this problem. Remember that like in decimal addition, the last carry
just makes the number bigger and is added on to the left of the number.
1
1 0 1 1
+ 1 0 1 0
= 1 0 1 0 1
Understanding Computers
Worksheet 6
5: Use rule (e) in this question. Use the carry row again and remember: 1+1+1 = 1 carry 1.
1 1 1
1 1 1 1
+ 1 0 1 1
= 1 1 0 1 0
6: Increase the size of the numbers using a 6-bit pattern. Apply the same rules as before.
1
1 0 0 0 1 1
+ 0 1 1 0 1 0
= 1 1 1 1 0 1
1 1 1
1 1 0 1 1 0 1 1
+ 0 0 0 1 1 0 1 0
= 1 1 1 1 0 1 0 1
8: Now try without the help of the grid or rules (a) to (e) to refer to.
1 1 1 1
1 0 1 0 0 1 0 1
+ 0 0 1 1 1 1 0 0
= 1 1 1 0 0 0 0 1
An 8-bit binary pattern can hold 256 different numbers – 0-255. When the result of the addition is
greater than 255, an overflow error occurs!
9: Try and work out the answer here using all the normal rules and see if you get an overflow error.
1 1 1
1 1 0 1 0 0 1 1
+ 1 0 1 1 1 0 0 0
= 1 0 0 0 1 0 1 1
The CPU drops the overflow digit because the computer cannot store it anywhere therefore to a
computer 255 + 1 = 0.