Overflow Exception

Card Puncher Data Processing


overflow is instruction exception that is triggered by the ALU via a status flag when the arithmetic operation does not have enough space to be performed.


If a programmer incorrectly:

  • declares a variable as int (16 bit integer) that has a maximum storage value of <math>2^{15}−1</math>
  • try to store a bigger value in this variable, the cpu will fail with an overflow failure.

That variable should have been declared with a bigger data type such as long, which has at least 32 bits on any computer.

Discover More
Data System Architecture
Computer Storage - Integer Data Type (Binary Data)

In computer, integer are stored in word from 8 to 64 bit. Because CPU manipulates integer data type, they are also sometime called binary data type. Bit Length Two's complement signed Unsigned Float...
Card Puncher Data Processing
Instruction - Exception

An exception is an event that occurs when: when an instruction causes an error. Example: an attempt to divide by zero generates an exception overflow at a breakpoints Some types of exceptions...
Status Flag Register
Register - Status Flag

The status flags (bits 0, 2, 4, 6, 7, and 11) of the EFLAGS register indicate the results of arithmetic instructions. The status flags allow a single arithmetic instructions to produce results...
Data System Architecture
What is and how are Floating-point stored on a computer?

Computer representations of floating point numbers typically use a form of rounding to significant figures, but with binary numbers. The number of correct significant figures is closely related to the...

Share this page:
Follow us:
Task Runner