Looks like you might have stumbled onto a code example for a 16F7X7 type with 3 CCP
modules. Unfortunately the 877A only has two.