MAIN: IF tTime ;If timer has expired tTime = TM_SECOND ;reload the timer and count = count + 1 ;increase by 1 the variable count ENDIF WAIT 1 JUMP MAIN END