Re: INTERRUPT.hightech c
You need to put a pull down resistor to ground between the switch and pin RB0 so the line is pulled down when the switch is open and pulled high when the switch is closed.
It is also advisable to filter the line with a series resistor and a cap to ground to debounce the switch.
I suggest a 100nF cap to ground close to RB0. Then a series resistor of 1K to the pull down resistor. Then the pull down resistor of 47K to ground, then the switch to supply.
For the code, if you have Hi-Tech, look in the samples directory for the interrupt demo.