We’re moving to a new home! Our website is currently in test mode while we update and transfer our content. Some pages and resources may be temporarily unavailable. We’ll be back with all resources shortly. Thank you for your patience.

CIE IGCSE | 1.1.4 Binary Addition And Overflow

Lesson objective

Add positive 8-bit binary integers and explain overflow when the result exceeds the available range.

Learn

1.1.4 | BINARY ADDITION AND OVERFLOW

01 | ADDING WITH ONLY TWO DIGITS

Binary addition works like the column addition you already know: line up the digits, start on the right and carry to the next column when needed.

In denary, a column total of ten creates a carry. In binary, a column total of two creates a carry, because each place is worth twice the place to its right.

This lesson adds unsigned 8-bit integers. Their range is 0 to 255. Signed addition uses different overflow rules and is not the model used here.

02 | THE FOUR BASIC RULES

Two input bits: one result bit per column
First bitSecond bitWrite hereCarry left
0000
0110
1010
1101

1 + 1 means two in denary, written as 10 in binary. Write the 0 in the current column and carry the 1 to the column on its left.

  1
+ 1
---
 10

The carried 1 has twice the current column’s place value. You are not losing the value; you are representing it in the next position.

03 | REMEMBER THE INCOMING CARRY

A column can receive a carry from the column on its right. Add that carry to the two original bits, then decide separately what to write here and what to carry left.

Examples with an incoming carry: every bit cell contains one bit
First bitSecond bitCarry inWrite hereCarry left
00110
01101
10101
11111

1 + 1 + a carried 1: write 1 in this column and carry 1 to the next column on the left. They belong in different positions, not together in one result cell.

In the worked additions below, the lighter green row shows incoming carries. The original operands remain dark. Blank carry cells mean there is no incoming carry.

04 | FIRST EXAMPLE: NO CARRIES

Add 20 and 9: no carries
RowBeyond 8 bits1286432168421
Carry in
First value00010100
+ Second value00001001
Sum00011101

Each column contains at most one 1. Add from right to left and write each result directly. Check in denary: 20 + 9 = 29.

Keep all eight columns aligned, including leading zeros. Otherwise you may accidentally add different place values together.

05 | WORKED EXAMPLE: CARRIES THROUGH SEVERAL COLUMNS

The operands are written horizontally, with matching place values lined up. Start at the right. Each carry is already shown above the column that receives it.

Add 45 and 27: work from the 1 column towards the left
RowBeyond 8 bits1286432168421
Carry in111111
First value00101101
+ Second value00011011
Sum01001000

Read the sum horizontally, from 128 down to 1: 01001000. The carry is included exactly once in each column.

Denary check: 45 + 27 = 72. A carry inside the eight columns is normal and does not by itself mean overflow.

06 | A CHAIN OF CARRIES

Add 15 and 1: a chain of carries
RowBeyond 8 bits1286432168421
Carry in1111
First value00001111
+ Second value00000001
Sum00010000

The rightmost 1 + 1 writes 0 and carries 1. The next three columns each add a 1 and the incoming carry, so each also writes 0 and carries 1.

At the 16 column, 0 + 0 + 1 writes 1. The chain stops, and the result fits within eight bits.

This is a useful pattern to recognise: adding one to a run of trailing 1s turns those trailing bits to 0 and increments the next position.

07 | OVERFLOW: THE RESULT DOES NOT FIT

An unsigned 8-bit register can hold only eight bits. Its greatest value is 11111111₂ = 255₁₀. Overflow occurs when the correct sum is outside the range that can be represented.

Add 255 and 1: a carry beyond the eight available bits
RowBeyond 8 bits1286432168421
Carry in11111111
First value11111111
+ Second value00000001
Sum100000000

Full mathematical result: 100000000₂ = 256₁₀.
Low eight bits: 00000000₂ = 0₁₀.
Overflow: yes, because 256 exceeds 255.

If only the low eight result bits are retained, the extra leading bit does not fit and the retained pattern is not the correct unsigned sum. A real processor may record a carry condition; software behaviour depends on the system.

08 | OVERFLOW WITH ANOTHER SUM

Add 200 and 100: the result needs a ninth bit
RowBeyond 8 bits1286432168421
Carry in11
First value11001000
+ Second value01100100
Sum100101100

The correct sum is 300, which needs nine bits. An 8-bit-only result retains 00101100, representing 44.

Check: 300 − 256 = 44. For addition of two unsigned 8-bit values, an outgoing carry beyond the 128 column indicates that the sum exceeds the range.

Do not report 44 as the full mathematical answer. State the correct sum, retained bits and overflow separately when asked.

09 | TRY AN EIGHT-BIT ADDER

Enter two eight-bit patterns. Predict the sum and whether it fits, then inspect the result and carry row.

Use exactly eight 0s and 1s. Spaces between groups are allowed.

10 | A RELIABLE EXAM METHOD

  1. Line up the eight-bit operands by place value.
  2. Start at the rightmost column.
  3. Add both bits and the incoming carry.
  4. Write the result bit and pass the outgoing carry left.
  5. Check for a carry beyond the leftmost available bit.
  6. Use denary as a separate check if helpful.

For an overflow explanation, connect the result to the range: “The sum is greater than 255, so it cannot be represented in an unsigned 8-bit register.” Simply writing “there is a carry” is not enough when the carry stays inside the register.

PRACTISE | ADD, CHECK AND EXPLAIN

Complete the activities, then try the scored and written questions without the adder.

ADDITION DETECTIVE

Enter your answers. Binary patterns must keep the requested width; spaces and hex letter case are accepted.

MATCH THE TERMINOLOGY

Choose the term that matches each description.

Terminology

Terminology

Carry

A value transferred to the next column during addition.

Overflow

The correct result is outside the representable range.

Unsigned 8-bit range

0 to 255 inclusive.

Register width

The number of bits available in a register.

Carry out

A carry beyond the most significant column.

Retained result

The bits left within the available width.

Questions

Questions

APPLY YOUR SKILLS

Enter your answers. Binary patterns must keep the requested width; spaces and hex letter case are accepted.

TICK-BOX QUIZ

Select all correct choices. Each exact set earns one point.

1. What is 1 + 1 in binary?
2. What is 1 + 1 + an incoming carry of 1?
3. Which unsigned sums overflow eight bits?
4. What is the maximum unsigned 8-bit value?
5. Which is 127 + 1 in 8-bit unsigned binary?
6. Which statements describe overflow?

WRITTEN QUESTIONS

Answer in your book first. These are practice questions and suggested answers, not official exam questions or mark schemes.

1. Add 00110110 and 00011101. Show working. [3 marks]

2. Add 11110000 and 00100000. Explain the outcome. [3 marks]

3. Explain why 127 + 1 does not overflow an unsigned 8-bit register. [2 marks]

4. Explain why wider registers still have overflow limits. [2 marks]

Flashcards

Flashcards

Click a card to flip it. Tick the cards you need to revisit.

0 cards selected for revision.

    Selections are kept while this page is open.

    Workbook

    Workbook

    A place to practise, explain and apply your learning.

    COMING SOON

    The workbook for 1.1.4 Binary Addition And Overflow is coming soon. For now, use the Questions tab and write your answers in your exercise book.