Code:
TRISB=255
TRISD=0
OPTION_REG.7=0 ' enable pull-ups resistor on PORTB
Loop:
    PORTD=~PORTB
    goto Loop
Connect your switchs between PORTB and GND.
All PORTD pins goes to PC thru serie resistor.. let's say 1K