In changing the Interrupt Handler (ClockCount: ), it has changed the number of system variables it uses. The comparison [if Ticks = 1000 THEN] uses the CMPNE macro which uses the R4 system var.
So the R4 variable needs to be saved and restored the same way as R0 and R1 are saved in the ClockCount routine.
And the constant should be $FC20 which is 8 counts less. This accounts for the time it takes to reload the timer.
HTH,
Bookmarks