I am not doing anything that didn't work for the 16F877A
Unfortunately, that doesn't really mean much since this PIC type is a totally different animal...

Post everything you have, and I'll give it a shot here compiling it. And - like I mentioned above, not all registers are in the same banks on this PIC as they are in the 877A, and just trying to cut & paste something that was working on an 877A for sure isn't going to work.

This new series PIC is BIG time different than the 877A.