I don't know if this has anything to do with it but it looks like the PIC doesn't have portb. It has GPIO's. Try changing portb.0 to gpio.0 and trisb to trisio.
That was discussed in another thread earlier today...
Apparently, PBP aliases GPIO to PORTB and TRISIO to TRISB for the 12F519...
Go figure eh? I wouldn't have found that... Handy though...
Bookmarks