Instruction - Exception

Card Puncher Data Processing

About

An exception is an event that occurs when:

Some types of exceptions may provide error codes. An error code reports additional information about the error.

Notation

An example of the notation used to show an exception and error code is shown below:

#PF(fault code)

where:

  • PF refers to page-fault exception
  • fault code is an error code naming a type of fault (Default to zero)

Handler

When a call is made to an exception handler procedure, the processor automatically saves the state of the EFLAGS register on the procedure stack. When an exception is handled with a task switch, the state of the EFLAGS register is saved in the TSS for the task being suspended.

Documentation / Reference





Discover More
Eflags Registers
CPU Register - Eflag

The 32-bit EFLAGS register contains: a group of status flags, a control flag (DF), and a group of system flags. When suspending a task, the processor automatically saves the state of...
Card Puncher Data Processing
Code - Exception (Try, Catch, Finally statement)

Exceptions are a means of breaking out of the normal flow of control of a code block in order to: handle errors or other exceptional conditions. You may want to track and see the exceptions that...
Debugging
Debugger - Breakpoint

Breakpoints are special type of exception
Card Puncher Data Processing
Overflow Exception

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...



Share this page:
Follow us:
Task Runner