Quote Originally Posted by Bonaparte
Hi guys,

I'm new to PICBasic!! I'm programming PIC16F877A using PICBASIC Pro & MicroStudio...

What's the FASTEST way to implement a simple loop with a loop counter (initially positive) which decrements & stops when it reaches zero...


Again, i'm talking about the FASTEST (in decrementing counter & repeating itself) way?!!!


Thx...



LOOP: For I=10 TO 1 STEP -1:NEXT I:GOTO LOOP

That's not so hard now is it? It's just like in the PBP manual, with a couple of very small changes.