One problem with your quest for a solution is that you have posted in a PicBasic language Forum and not an Assembly language Forum. Try posting your question here

http://forum.microchip.com/

However, everything looks fine to me with your code – it should work. When you repost in the microchip forum, make sure to describe what is not working. Does the chip just do nothing? Does your chip program without error? What is providing the highs and lows on PORTB.0? What configs did you set? Do you have a schematic to post? etc.

Good Luck,

Paul Borgmeier
Salt Lake City, Utah
USA