1. You need 10-bit res, but you set it to 8.
May not be the problem though.

2. Add @ DEVICE PIC16F767, INTRC_OSC to the first line.
Also this may not be the problem.
------------------