Overflow in an 8-bit register
An error when an 8-bit addition gives a result over 255. It needs a 9th bit, so the carry out of the leftmost column is lost and the stored result is wrong.
Understanding Overflow in an 8-bit register in IGCSE Computer Science Paper 1
What it does: The true answer 300 is 100101100 in binary. Only the right-hand 8 bits, 00101100 (44), are stored, so the result is wrong. The largest value 8 bits can hold is 255. Any sum over 255 needs a 9th bit, so it causes an overflow error. Overflow happens when a carry comes out of the leftmost (128s) column. There is no 9th column to store it. 255 + 1 = 256. In binary that is 1 followed by eight 0s, so 9 bits are needed. 255 + 1 = 256, which needs a 9th bit. An 8-bit register can only hold 0 to 255, so this addition overflows.
Common mistakes: The largest value an 8-bit register can hold is 255, not 256. 256 needs a 9th bit. It should be max8 <- 255. 255 + 1 = 256, which is 100000000 in binary and needs 9 bits. An 8-bit register cannot hold it. It should be bitsNeeded <- 9.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 18–27) and word search (Modules 3–27).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
overflowFill in the Blanks
Spot the Error
Student with a class code? Join your class →