
;
;         <irq_tsgn.txt>    
;
;------------------------------------------------------
; INTERRUPT SERVICE ROUTINE
;------------------------------------------------------------------------------

INT_VECTOR    CODE    0x0004  ; interrupt vector location
        MOVWF   W_TEMP        ; save off current W register contents
        MOVF    STATUS,w      ; move status register into W register
        MOVWF   STATUS_TEMP   ; save off contents of STATUS register

; isr code can go here or be located as a call subroutine elsewhere
       bsf OPTION_REG,T0CS ;  /0
       movlw frize
       movwf TMR0
       bcf OPTION_REG,T0CS ;  /0
       goto gentos

;        MOVF    STATUS_TEMP,w ; retrieve copy of STATUS register
;        MOVWF   STATUS        ; restore pre-isr STATUS register contents
;        SWAPF   W_TEMP,f
;        SWAPF   W_TEMP,w      ; restore pre-isr W register contents
        RETFIE                ; return from interrupt
;