DRUID Development Docs: gtime_isr.inc

Gadget Sourcecode: gtime_isr.inc

; Justice Unlimited Gadget Microcode
; (C) 2004 Nathan (Acorn) Pooley 
;
; gtime.inc
;
;@DOC@ time interrupt service routine
;

;############################################
;############### TIMER0 - GAME CLOCK ########
;############################################

    ; this occurs once every second
isr_timer0:
    bcf     b_tmr0if        ; clear interrupt
#if DEBUG_BITS
    btg     db_blink        ; toggle debug blink output
#endif
    incf    v_time_addsec,f ; one more second

#if INTERNAL_WATCHDOG
    movf    v_time_addsec,w
    addlw   LOW -10
    bnc     isr_return
    bra     error_hang
#else
    bra     isr_return
#endif

This file Copyright (C) 2004 by Nathan (Acorn) Pooley
Go to DRUID Development page
Go to DRUID page
Go to JU Gadgets page
Go to Justice Unlimited homepage
Go to Acorn's personal webpage
Contact Acorn
See comments from others
Post your own comments
File created by do_doc at Wed Aug 4 18:03:22 2004