Try your code with a 4MHz Xtal and it will (most likely) work. Because you are using a 20 MHz Xtal and not a 4 MHz Xtal, you will need to change your SPBRG value - see Table 10.3 in the datasheet for the 877A.