Corrected timer overflow functionality so the value stored in the timer
modulo register is placed in the timer register when it overflows