Just try PortB.7 and PortB.6 ...

and read the '877 Databook , Interrupts section :

WHICH are the 4 pins that create "interrupts on change" ???

HOW to avoid the " Mismatch condition " ???

Alain