This post describes the operation of interrupt functions.
- Interrupted Event occurrence
- PC(Program Counter) and registers are stored on the stack for interrupt functions.
- Suspend FUNC(), set the execution code address of INT() from the Vector table to PC and execute INT().
- Restore PC and registers that have been saved to the stack.
- Resume from the interrupted code position of the FUNC().
Interrupt functions have more registers to be cleared from the stack than normal functions.
Note that interrupt functions are declared differently from normal functions.