Syntax of IL Instructions
IL code is composed of a sequence of instructions. Each instruction begins on a new line and contains an operator with optional modifiers, and, if necessary for the particular operation, one or more operands separated by commas. Operands can be any of the data representations for literals and for variables.The instruction can be preceded by an identifying label followed by a colon (:). Empty lines can be inserted between instructions.ExamplesLet us parse a small piece of code:START:LD %IX1 (* Push button *)ANDN %MX5.4 (* Not inhibited *)ST %QX2 (* Fan out *)The elements making up each instruction are classified as follows:
Semantics of IL Instructions
Label | Operator[+ modifier] | Operand | Comment |
START: | LD | %IX1 | (* Push button *) |
ANDN | %MX5.4 | (* Not inhibited *) | |
ST | %QX2 | (* Fan out *) |
- Accumulator
- Operators
- Modifiers