hmmm..that might be important lol. TY now it works perfectly, just gotta adjust the PS for TMR2 and maybe reorganize the code. It is not very efficient right now.
movlw b'00111000'
movwf STATUS ;BANK 1
movlw b'01000001'
movwf OSCCON ;sets oscillator to 1MHz
is not the best way. One, it's not as clear what you're doing as it could be. Two, wiping out the STATUS register every time you change banks could conceivably cause some serious bugs under the right circumstances. I'd think ORing or BSF/BCFing those bits in there would be safer.
Thanks guys. When I was starting out programming I avoided using cblock and banksel and others like it. I felt that I should do things manually so that I understood everything that was happening. But now I guess I should start using them.