After trying your code I got the following compiler error ?

Warnin[207] C:\pbp..... Filename.asm 81 : Found label after column 1. (Device)
Error[122] C:\pbp........ Filename.asm 81 : Illegal opcode (Pic16F876A)

Any idea ?

PBP2.50 and MPASM