Have you told the compiler the correct PIC you're using? 7FFh is 2k, so it looks like it thinks that's the limit.