Operation of interrupt functions

This post describes the operation of interrupt functions.

  1. Interrupted Event occurrence
  2. PC(Program Counter) and registers are stored on the stack for interrupt functions.
  3. Suspend FUNC(), set the execution code address of INT() from the Vector table to PC and execute INT().
  4. Restore PC and registers that have been saved to the stack.
  5. 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.

OSS-ECAL English
error: Content is protected !!