Command line options override anything in your program.

You've compiled it for a 16F877
Code:
pbpw -p16f877 test1.bas
And put @ device pic16F877A, ... in the program.
<br>