HI_INT_VECTOR CODE 0x0008 bra HighInt ;go to high priority interrupt routine LOW_INT_VECTOR CODE 0x0018 bra LowInt ;go to low priority interrupt routine CODE HighInt: ; *** high priority interrupt code goes here *** retfie FAST LowInt: movff STATUS,STATUS_TEMP ;save STATUS register movff WREG,WREG_TEMP ;save working register movff BSR,BSR_TEMP ;save BSR register ; *** low priority interrupt code goes here *** movff BSR_TEMP,BSR ;restore BSR register movff WREG_TEMP,WREG ;restore working register movff STATUS_TEMP,STATUS ;restore STATUS register retfie -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist