BASIC RUN Command - fvdhoef/aquarius-plus GitHub Wiki

RUN

TYPE: BASIC Command

FORMAT: RUN [line_number]

FORMAT: RUN filespec

Action:

The system command RUN is used to start the program currently in memory. The RUN command causes an implied CLR operation to be performed before starting the program. You can avoid the clearing operation by using CONT or GOTO to restart a program instead of RUN. If a line-number is specified, your program will start on that line, otherwise, the RUN command starts at first line of the program. The RUN command can also be used within a program. If the line-number you specify doesn't exist, the BASIC error message UNDEF'D STATEMENT occurs.

A Running program stops and BASIC returns to direct mode when an END or STOP statement is reached, when the last line of the program is finished, or when a BASIC error occurs during execution.

EXAMPLES of RUN Command:

Starts at first line of program:

RUN

Starts at line-number 500:

RUN 500

:warning: TODO : Examples of running a core or program from SD card.