7.1 What Is Exception Handling? The CPU sometimes shows special operation called "exception handling". Exception handling refers to the operation that moves execution not to the next instruction but to another program after the current instruction is completely executed if any exception handling source is generated while the CPU is executing the main routine. The program to which execution is moved by exception handling is referred to as an "exception handling routine".
|
Although what generates an exception handling source depends on the type, all types of exception handling routines employ the vector method. This method is designed to notify the CPU of the start address of an exception handling routine. The details are described in the following sections. |