FOR MCB= 1 TO 0 STEP -1
PORTB=1
PORTC=1
MCB=MCB+1
NEXT
At first glance, this will run forever.

But, MCB is a bit; it can be 0 or 1. What happens first time through the loop when 1 is added to MCB when it is 1?

Robert