Download presentation
Presentation is loading. Please wait.
Published byErnest Russell Modified over 9 years ago
1
a)Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa b)Add two 8-bit binary integers and explain overflow errors which may occur c)Convert positive denary whole numbers (0-255) into 2- digit hexadecimal numbers and vice versa. d)Convert between binary and Hex equivalents of the same number e)Explain the use of Hex numbers to represent binary numbers Candidates should be able to:
2
Have a go at converting denary to binary numbers on the booklet provided OR Binary Nibble Bingo Starter
3
FEW RULES: Adding binary numbers together
4
00011101 + 10011011 Adding binary numbers together
5
Step 1: Start off by putting the numbers in the top 2 rows in a 4 row table. 3 rd row will hold any carry overs 4 th row will contain the answer Adding binary numbers together
6
Step 2: Add the column on the right together From the rules above we know that 1+1 = 10 Adding binary numbers together
7
Step 2: Put a 0 on the bottom row & we carry a 1 over into column 7 Adding binary numbers together
8
Step 3: Column 7 Add the 3 rows together 0+1+1 = 10 Adding binary numbers together
9
Step 3: Column 7 Put 0 at bottom of column 7 Carry the 1 to row 3 of column 6 Adding binary numbers together
10
Step 4: Column 6 1+0+1 = 10 Adding binary numbers together
11
Step 4: Column 6 Put 0 down Carry 1 over to column 5 Adding binary numbers together
12
Step 5: Column 5 1+1+1 = 11 Adding binary numbers together
13
Step 5: Column 5 Put 1 down in column 5 Carry 1 over to row 3 column 4 Adding binary numbers together
14
Step 6: Column 4 1+1+1 = 11 Adding binary numbers together
15
Step 6: Column 4 Put 1 down in column 4 Carry 1 over into column 3 Adding binary numbers together
16
Step 7: Column 3 0+0+1 Adding binary numbers together
17
Step 7: Column 3 Put 1 down in column 3 row 4 Carry 0 to column 2 Adding binary numbers together
18
Step 8: Column 2 0+0+0=0 Adding binary numbers together
19
Step 8: Column 2 Put 0 down in column 2 row 4 Carry 0 into column 1 row 3 Adding binary numbers together
20
Step 9: Column 1 0+1+0 = 1 Adding binary numbers together
21
Step 9: Column 1 Put 1 down in column 1 row 4 Nothing to carry over Adding binary numbers together
22
RESULTS: Adding binary numbers together
23
The last binary add was straightforward. HOWEVER what would happen if the sum in column 1 had been 1+1? The carried 1 would have nowhere to go and would be lost. The problem is called overflow and causes the wrong answer. Overflow Errors
24
To “solve” this problem what normally happens is a flag in the CPU (processor) The software that has caused the error MUST check to see if this flag has been set - & if so it has to handle the problem. Overflow Errors
25
http://templehouse.me.uk/gcsecomputing/BinaryHexCo nversion.html
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.