4.3. INTERRUPT

Format:


        PRAGMA INTERRUPT { FAST | RAW | NORMAL | }
      
This must be used within a procedure that takes no parameters. It defines the procedure as an interrupt entry point. Such a procedure is added to a chain of procedures executed whenever an interrupt hits. Once a procedure has been marked interrupt, it cannot be called directly by the program.

4.3.1. * NORMAL

W, STATUS, PCLATH, FSR, TBLPTR and _picstate are saved on ISR entry and restored on exit

4.3.2. FAST

_pic_state is *not* saved or restored. In this case, the interrupt procedure should be written entirely in assembly to avoid corrupting the pic_state area.

4.3.3. RAW

*None* of the normal pre-amble or cleanup code is generated. The user is entirely responsible for the interrupt. The code is guarenteed to placed at the interrupt vector.

nb: this feature isn't yet available