Created
August 7, 2012 02:25
-
-
Save brooksware2000/3280796 to your computer and use it in GitHub Desktop.
Elapsed timer routine. Interrupt is set to fire in 1 second intervals.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'------------------------------------------------------------------------------- | |
' 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