
122
Program Configuration
Section 7-4
• All inputs up until the Enter Key is pressed are stored in the user memory
as a single line, in the order of line numbers. Execution is carried out in
the order of line numbers. Line numbers are also used as references for
branching destinations such as GOSUB and GOTO, and arguments in
LIST and DEL.
• Line numbers must be between 0 and 65535. Each line is written in
ascending order of magnitude of the line numbers.
• A line consists of up to 255 characters (including the line number and
spaces).
Note
A period (.) may be used in DELETE, LIST, and EDIT commands to refer to
the current line number of a program (the most recently entered or displayed
line number).
Examples of the use of the period:
LIST.
EDIT.
DEL 100–.
Labels
Labels are used in place of line numbers in GOTO and GOSUB commands.
At the point being labeled, alphabetic characters must follow an asterisk (*) as
the line’s first statement. The maximum length of a label is 16 characters,
including the asterisk. Text strings that begin with reserved words cannot be
used. When characters continue after a label in a line, they are separated by a
colon (:). When two identical label names exist, the label in the line with the
lowest line number is referred to.
Example
Note
If the line number of the branch destination is specified, the line number will
also have to be corrected when editing the program. By using labels, it is not
necessary to correct the line number, making program revisions quicker and
more effective. If text strings starting with reserved words are used as labels,
a SYNTAX ERROR will occur.
Statements
• Statements can occur alone or they can contain functions.
• If there is more than one statement on the same line, separate the state-
ments with a colon (:).
Example:
10
FOR L=1 TO 100:
J=L*I:
PRINT J:
NEXT L
Line No. Statement 1
Statement 2 Statement 3 Statement 4
Comments
Input comments after single quotations (’).
Note
Comments cannot be used in lines containing the DATA command.
Line number
[Label:]
Statement
Statement
['Comment]
CR
:
:
10 ON COM 1 GOSUB
*
ABC
100
*
ABC
Label
Label
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...