Are you looking at the TRIS statement? If so, start by putting it near the beginning of your code.

TRISB = %00000000 ' makes all PORT B pins output
TRISB = %11111111 ' makes all PORT B pins input
TRISB = %00000011 ' makes pins B.0 and B.1 inputs, the rest outputs.