This will work;
Code:
X VAR BYTE

main:
  for X = 0 to 7
      if PortB.0[X] = 1 then xxxxx
  next X
  goto main
PortB.0 <-- zero after PortB indicates you're dealing with a bit.

PortB.0[X] <-- [X] = the bit index pointer.