Datasheet
Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
program test
main:
 ' some instructions ...
goto myLabel
 ' some instructions...
myLabel:
 ' some instructions...
end.
4.2 Loops
Loop statements allow repeating one or more instructions for a number of times. The conducting 
expression determines the number of iterations loop will go through.
4.2.1 FOR Statement – Repeating of a program segment
Syntax
for counter = initialValue to finalValue [step step_value]
 statement_1
 statement_2
 ...
 statement_N
next counter
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/04.htm (6 sur 9)05/11/2004 02:15:36










