How about the PORTA.3 problem Joe mentioned?
This will help
http://www.picbasic.co.uk/forum/showthread.php?t=561