The PIC16F84A is a very old chip. It only has one timer, timer0. This code needs two timers, timer0 and timer1.