Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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