intel MCS BASIC-52 — Intel MCS BASIC-52 Versions 1 & 1.1 Operating and Reference Manual PDF (EN)

int e l CHAPTER 2 Description of Commands 2.1 DESCRIPTION OF COMMANDS COMMAND: RUN(cr) ACTION TAKEN: After RUN(cr) is typed all variables are set equal to zero, all BASIC evoked interrupts are cleared and program execution begins with the first line number of the selected program. The RUN command and the GOTO statement are the only way the user can place the MCS BASIC-52 interpreter into the RUN mode from the COMMAND mode. Program execution may be terminated at any time by typing a control-C on the console device. VARIATIONS: Unlike some Basic interpreters that allow a line number to follow the RUN command (i.e., RUN 100), MCS BASIC-52 does not permit such a variation on the RUN command.

Execution always begins with the first line number. To obtain the same functionality as the RUN[ln num] command, use the GOTO[ln num] statement in the direct mode. SEE STATEMENT GOTO. EXAMPLE: >10 FOR I=1 TO 3 >20 PRINT >30 NEXT >RUN 1 2 3 READY > - 13 -