Hi All

I have created an assembler interrupt handler for a PIC18F2480 using the following code.

DEFINE INTHAND InterruptHandler
ASM
InterruptHandler
; ********* Serial Framing Error Interrupt *********
btfsc RCSTA,2 ; check if serial framing error interrupt is set
call _FramingError ; call serial framing error subroutine
; ********* Serial Overrun Error Interrupt *********
btfsc RCSTA,1 ; check if serial overrun error interrupt is set
call _OverrunError ; call serial overrun error subroutine
; ********* Serial Receive Interrupt *********
btfsc PIR1,5 ; check if serial receive interrupt is set
call _ReceiveSerialData ; call receive serial data subroutine
; ********* Serial Transmit Interrupt *********
btfss _TxFlag ; check if serial transmit flag is set
goto InterruptHandlerEnd ; goto interrupt handler end
btfsc PIR1,4 ; check if serial transmit interrupt is set
call _TransmitSerialData ; call transmit serial data subroutine
InterruptHandlerEnd
retfie FAST ; return from the interrupt
ENDASM

My question is, do I need to have my wsave, ssave and psave variables for context saving or does the 18F2480 handle all the context saving and restoring? If I do need context saving, what variables do I need?


Any help would be greatly appreciated.


Thanks

Richard