2-45
Section 2 Programming Languages
2-5 IL Language
An instruction in the IL language consists of an instruction symbol, a variable name, and a comment specified on a single line.
It is also possible to place a label, as shown on the first line of the figure below. The label serves as the destination of jump
instructions.
<Examples of IL language instructions>
Variable name
Instruction symbol
The instruction symbol must be described in uppercase.
The instruction symbol and the variable name must be
separated by at least one blank character.
Label
A label is identified by the colon (“:”) that follows the
label name.
The label name must be no longer than 30 1-byte
characters or 15 2-byte characters.
Do not enter any operator or operand in the label line.
Comment
A comment begins with
“(*“gand ends with”*).”
2-5-1 IL instruction summary
The IL instructions can be used only in the IL language.
Instruction Name
Data type Description
No. of
steps
Related
section
LD
Load
ANY
Loads the operand value and sets it to the operation result.
1
FEH200
2-6-3
LDN
Load not
ANY_BIT
Loads the inverted value of the operand and sets it to the operation
result.
1
ST
Store
ANY
Stores the current operation result in the operand.
1
STN
Store not
ANY_BIT
Stores the inverted value of the current operation result in the
operand.
1
S
Set
BOOL
Sets the operand to 1 if the current operation result is 1.
1
R
Reset
BOOL
Resets the operand to 0 if the current operation result is 1.
1
AND
Logical
product
ANY_BIT
Operates the logical product of the current operation result and the
operand value, and sets the result to the operation result.
1
AND(
Operates the logical product of the current operation result and the
operation result specified in parentheses, and sets the result to the
operation result.
1
ANDN
Logical
inverted
product
ANY_BIT
Operates the logical product of the current operation result and
the inverted value of the operand value, and sets the result to the
operation result.
1
ANDN(
Operates the logical product of the current operation result and the
inverted value of the operation value specified in parentheses, and
sets the result to the operation result.
1
OR
Logical add
ANY_BIT
Operates the logical add of the current operation result and the
operand value, and sets the result to the operation result.
1
OR(
Operates the logical add of the current operation result and the
operation result specified in parentheses, and sets the result to the
operation result.
1