Hi Patrick

You also need to set portb.0 TRIS register to output

TRISB = %11111110
or
TRISB.0 = 0

TRISB = %00000000

will set all PORTB pins as output

Phil