Positron Compiler Documentation

General Format

Positron16 · Revision 1.1.3.5 · PDF page 64

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: -

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

Single-line version: -

Low PORTB: For MyByte = 0 to 100 : PORTB = MyByte: Next
View original PDF page 64Open page in PDFOriginal PDF page 64