Instruction name |
Instruction format | Description | |||||
---|---|---|---|---|---|---|---|
Mnemonic | First argument |
Second argument |
Third argument |
Fourth argument |
Fifth argument |
||
entry statement | entry | Indicates the beginning of the main program. | |||||
end | Indicates the end of the main program. | ||||||
sub statement | sub | <subroutine name> |
Indicates the beginning of a subroutine. | ||||
end sub | Indicates the end of a subroutine. (Returns to the calling routine.) | ||||||
call statement | Call | <subroutine name> |
Branches to a subroutine having the <subroutine name>. The return to the main routine is invoked by "end sub". | ||||
cont statement | Cont | on | Selects the entry point of the program after the restoration from interrupts. on = Resumes execution from the next step of the interrupted command. |
||||
off | off = Resumes execution from the beginning of the program. | ||||||
for loop | For | <variable> | <start value> | <end value> | [step <incre- mental value>] |
The <instructions> are repeated as long as <variable> is between the <start value> and <end value>. By default, the <incremental value> is 1. | |
<instructions> | Instruction set to be repeated. | ||||||
Next | "for" loop ender. | ||||||
goto statement | goto | <label name> | Performs an unconditional branch to the step labeled with <label name>. | ||||
ifs (structure if) | ifs | <condition> | Starts the structure if statement. | ||||
[then] | Starts the instructions that are to be executed when the <condition> is met. | ||||||
<instructions> | Instructions to be executed when the <condition> is met. | ||||||
[else] | Starts the instructions that are to be executed when the <condition> is not met. | ||||||
<instructions> | Instructions to be executed when the <condition> is not met. | ||||||
End if | Ends the "structure if" statement. | ||||||
if statement | if | <condition> | then | <label name> |
Branches to the step labeled with <label name> when the <condition> is met. | ||
load statement (variable read) |
Load | [P] | [N)] | [T] | [ACC] | [DEC] | Reads specified parameters. Reads P(), N(), T(), ACC(), an DEC() by default. |
save statement (variable storage) |
Save | [P] | [N)] | [T] | [ACC] | [DEC] | Saves specified parameters. Saves P(), N(), T(), ACC(), an DEC() by default. |
select case syntax |
Select | <branch variable> |
Executes an instruction under "case" when the variable indicated by <branch variable> is the <condition value> indicated by "case". | ||||
Case | <conditional value> |
Starts writing the <condition value> and the instruction to be executed. | |||||
[case else] | Writes the instructions to be executed when the <condition value> is other than above. | ||||||
...... | String of "case" instructions. | ||||||
End select | Indicates the end of "select case" nesting. | ||||||
until loop | Until | <condition> | Executes <instructions> until the <condition> is met. Runs a condition check after instruction execution. | ||||
<instructions> | Writes the instruction to be executed. | ||||||
Loop | Indicates the end of "until". | ||||||
wait statement (time control) |
Wait | iii.ii | Stands by for a period of iii.ii (s). | ||||
<condition> | Stands by until the <condition> is met. | ||||||
while loop | While | <condition> | Executes the <instructions> while the <condition> is met. Runs a condition check prior to the instructions. | ||||
<instructions> | Instructions to be executed while the <condition> is met. | ||||||
Wend | Indicates the end of "while". | ||||||
inc statement | inc | <variable> | The <variable> add 1dig. | ||||
dec statement | dec | <variable> | The <variable> reduce 1deg. | ||||
on trip goto | on | trip | go to | <label name> | Branches to the <label> line when a trip occurs. | ||
rs statement | rs | Cancell 'trip' status. |