When an interrupt is pending the processor does the following thing:
- It suspends the execution of current program being executed and saves its context.This means saving the address of the next instruction to be executed and any other data relevant to the processors current activity.
- It sets the program counter to the starting address of an interrupt handler routine.
Quote: