Okay well after trying to get my head around this coding for several hours im going to have to ask for some help!
I ended up using the very very well written but advanced coding in the oylimpic timer. First of all i set up the programe running normally and checked that all options and modes etc were working fully.
I then started looking into making the programe count down instead of up so i set a value in the LCD display in the minutes and seconds incase it needed. (I dont know if there is a registry file which this info also needs to be placed into?)
I then looked at the coding and found the commands to change the seconds to 60 and minutes etc and change them to what i believe to be right:
' Timer Interrupt Handler
' =======================
TickCount:
Gosub SetTimer ' Set the Timer for next 10mS Interrupt
If RunningFlag=1 then ' If timing actually enabled... then...
Hundredths=Hundredths-1
' Increment 10mS Seconds Counter
If Hundredths<0 then
Hundredths=99
Seconds=Seconds-1
' Increment the Seconds
If Seconds<0 then
Seconds=59
Minutes=Minutes-1
' Increment the Minutes
If Minutes<0 then
Minutes=59
Hours=Hours-1
' Increment the Hours
If Hours>99 then
' Handle any Overflow
Hours=0
OverFlowError=1
Now im stuck. When i boot the programe up i get the time showing which ive set. I then start the timer and the tenth of seconds count down like i want them too! However it doesnt role over into the seconds.
Any help appreciated!





Bookmarks