You can modify the "Elapsed_INT.bas". If you open this file you will see some pbp code at "ClockCount:" . You can change the if statements for Hours, minutes, and seconds. Or you can add another varible and maintain the original code. I added the code in bold. Hope it helps.
Code:seconds2 var word 'place in main code ClockCount: @ RELOAD_TIMER ; Reload TIMER1 Ticks = Ticks + 1 if Ticks = 100 then Ticks = Ticks-100 Seconds = Seconds + 1 SecondsChanged = 1 seconds2 = seconds2 + 1 If seconds2 = 500 then ' Rollover at 500 seconds seconds2= 0 if Seconds = 60 then Minutes = Minutes + 1 MinutesChanged = 1 Seconds = 0 endif if Minutes = 60 then Hours = Hours + 1 HoursChanged = 1 Minutes = 0 endif if Hours = 24 then Days = Days + 1 DaysChanged = 1 Hours = 0 endif endif @ INT_RETURN ; Restore context and return from




Bookmarks