Exception Handling
Loosely, the following steps are taken:
1. Save the address of the offending instruction in a register
2. Make the reason for the exception known
- Set the value of the status register, or
- Use vectored interrupts to do step 3
3. Transfer control to the operating system
4. Operating system decides what to do:
- May report the error to the user
- May terminate the program