User Tools

Site Tools


documentation

Documentation

This page covers the statements implemented in 10LC as well as the syntax for their usage.

10LC Statements

Statements in 10LC are almost always terminated by a semicolon and whitespace is largely ignored. As far as 10LC is concerned, these lines:

Const JoystickUp = 0x01;
 
Read From 100;
Read From JoystickUp;

And this line:

Const JoystickUp=0x01; Read    From     100;              Read From JoystickUp;

Are all the same and will compile identically.

The only exception is a Label, which does not end with a semicolon and no space is allowed between the colon and the label name:

:ThisIsALabel
: ThisIsInvalidCode;

One notable difference between 9LC and 10LC is that 10LC is generally more verbose and does not currently support the shortened names that 9LC supports. You will also find that some 9LC statements, like WRITE CTL have their own long-form statement in 10LC: WriteCtrl.

Additionally, delimiters in statements may not be omitted. For example, the 9LC WRITE statement is WRITE @ 1234 = AB and could be shortened to WRITE 1234 = AB. 10LC's statement syntax is more rigid. The WRITE statement in 10LC is WRITE @ 0x100 = 0x22; and cannot be shortened, nor can any parts of it be omitted.

From here, you can view the Setup Statements, Operational Statements, If Expressions or the currently supported Intrinsic Statements.

Other Documentation and Help

A listing of compiler Errors and Warnings is available, as well as a FAQ.

documentation.txt · Last modified: 2020/09/21 21:44 by adminz