Everything
A.3.1 Processing an Interrupt in C Language

Use #pragma interrupt to declare an interrupt function.

[Example]

C source code

#pragma interrupt func
void func(){ .... }

 

Generated code

_func:
     PUSHM R1-R3 ; Saves registers used in the function
          ...
     (R1, R2, and R3 are used in the function)
          ...
     POPM R1-R3 ; Restores registers that were saved at the function entry
     RTE