Binary Addition
The new KS3 National Curriculum for Computing says that students should be able to carry out simple operations on binary numbers, and binary addition is also required for GCSE Computer Science courses.
Luckily the process is exactly the same as when adding normal denary numbers:
- align the units columns
- start with the right-most column and work right-to-left
- if the total of the values in each column requires more than one digit then you need to carry
With denary numbers, if you were adding, say, 6 and 4 then the total would be 10, so we'd write a 0 in that column and carry the 1 and add it into the total for the next column. In binary it's exactly the same, you just need to remember that 1 + 1 = 10, and if you need to include a carried bit then 1 + 1 + 1 = 11.
The sum of these values can be represented in eight bits.
You can change the first two numbers either by clicking on the 0s and 1s, or by typing numbers into the boxes. Think of some suitable test cases and what you'd expect the answer to be. What happens if you add two numbers with a total of more than 255?
See how logic circuits can be used to perform additions in the full adder.