Skip to content

Instantly share code, notes, and snippets.

@brooksware2000
Created August 7, 2012 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brooksware2000/3280796 to your computer and use it in GitHub Desktop.
Save brooksware2000/3280796 to your computer and use it in GitHub Desktop.
Elapsed timer routine. Interrupt is set to fire in 1 second intervals.
'-------------------------------------------------------------------------------
' Instant Interrupts Elapsed Timer routine
'-------------------------------------------------------------------------------
ASM
INT_LIST macro ;IntSource, Label, Type, ResetFlag?
INT_Handler TMR1_INT, _ClockCount, PBP, yes
endm
;Creates the interrupt processor
INT_CREATE
;Enable Timer 1 Interrupts
INT_ENABLE TMR1_INT
ENDASM
'Reset Time to 0d-00:00:00.00
Gosub ResetTime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment