Positron Compiler Documentation

General Format

Positron8 · Revision 4.0.6.5 · PDF page 40

The compiler is not case sensitive, except when processing string constants such as "hello".

Multiple instructions and labels can be combined on the same line by separating them with colons ':'.

The examples below show the same program as separate lines and as a single-line: -

Multiple-line version: -

Output PORTB           ' Make all pins on PORTB outputs
For MyLoop = 0 to 100   ' Count from 0 to 100
  PORTB = MyLoop        ' Make PORTB = MyLoop
Next                   ' Continue counting until 100 is reached

Single-line version: -

Output PORTB : For MyLoop = 0 to 100 : PORTB = MyLoop: Next
View original PDF page 40Open page in PDFOriginal PDF page 40