Multiple choiceQuestion 1 · Recall
Loading…
By the end you can add two binary integers, showing the carries, and say when the answer has overflowed.
Binary addition is column addition, just like in denary, except you carry when a column reaches 2 instead of 10.
| In the column | Sum | Write | Carry |
|---|---|---|---|
| 0 + 0 | 0 | 0 | 0 |
| 0 + 1 | 1 | 1 | 0 |
| 1 + 1 | 2 (10) |
0 | 1 |
| 1 + 1 + 1 (with a carry in) | 3 (11) |
1 | 1 |
Work from the right, and write each carry above the next column so you don't lose it.
Worked example: Adding two bytes
Add the unsigned bytes 0101 1011 (91) and 0011 0110 (54).