int e l 1.4 DEFINITION OF TERMS: COMMANDS: MCS BASIC-52 operates in two modes, the COMMAND or direct mode and the interpreter or RUN mode. MCS BASIC-52 Commands can only be entered when the processor is in the COMMAND or direct mode. MCS BASIC-52 takes immediate action after a command has been entered. This document will use the terms RUN MODE and COMMAND MODE to refer to the two different modes of operation. STATEMENTS: A BASIC program is comprised of statements. Every statement begins with a line number, followed by the statement body, and terminated with a Carriage Return (cr), or a colon (:) in the case of multiple statements per line.
Some statements can be executed in the COMMAND MODE, others cannot. The DESCRIPTION OF STATEMENTS section of this manual describes whether a statement can be executed in the COMMAND mode or only in the RUN mode. There are three general types of statements in MCS BASIC-52: ASSIGNMENTS, INPUT/OUTPUT, and CONTROL. The DESCRIPTION OF STATEMENT section of this manual explains what type is associated with each statement. EVERY line in a program must have a statement line number ranging between 0 and 65535 inclusive. Statement numbers are used by BASIC to order the program statements sequentially. In any program, a statement number can be used only once.
Statements need not be entered in numerical order, because BASIC will automatically order them in ascending order. A statement may contain no more than 72 characters in Version 1.0 and no more than 79 in Version 1.1. Blanks (spaces) are ignored by BASIC and BASIC automatically inserts blanks during LIST. More than one statement can be put on a line, if separated by a colon (:), but only one statement number is allowed per line. FORMAT STATEMENTS: Format Statements may only be used within the PRINT STATEMENT. The format statements include TAB([expr]), SPC([exprl], USING(special symbols), and CR (carriage return with no line feed).
Details of the format statements are provided in the description of the PRINT STATEMENT section of this manual. - 4 -