Overflow (Edexcel GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
12 cards from this deck
ShowHide
Practise the cards
12 cards from this deck
What is overflow?
What is overflow?
Result needs more bits than available storage space
Registers
Registers
Fixed-size storage spaces holding certain number of bits
When does overflow occur?
When does overflow occur?
Calculation result bigger than register can store
Binary addition overflow (8-bit)
Binary addition overflow (8-bit)
Result needs 9 bits when adding two 8-bit numbers
What happens to 9th bit in 8-bit register?
What happens to 9th bit in 8-bit register?
Cannot be stored, gets lost in system
Overflow effect on programs
Overflow effect on programs
Programs might crash or stop working
Overflow effect on calculations
Overflow effect on calculations
Give wrong answers without warning
Overflow effect on data
Overflow effect on data
Information becomes inaccurate or corrupted
Overflow effect on critical systems
Overflow effect on critical systems
Could cause dangerous malfunctions
High-level language overflow protection
High-level language overflow protection
Built-in mechanisms detect and handle overflow automatically
Overflow bit in final stored answer
Overflow bit in final stored answer
Not included, gets lost
01010110 + 11101000 stored in 8-bit
01010110 + 11101000 stored in 8-bit
00111110 (9th bit lost)
