Both high and low priority interrupts are supported through special Sub Procedures. Context saving is also handled automatically for WREG, STATUS, BSR, FSR0, and PROD.
One of the following keywords should be added to the end of a Sub definition to make it an interrupt service routine:
intHigh
intLow
Notes
Procedures can not be called from normal code and interrupt code, or from high and low priority interrupts due to local variable allocation. This includes library routines to support things like most multiplication, division, bit shifting, and floating point calculations.
Example:
' Define the high priority ISR Sub HighPriorityISR() intHigh End Sub
' Define the low priority ISR Sub LowPriorityISR() intLow End Sub