in BASIC ROM:
|List of all BASIC keywords|
Typ: Command General Programming-Syntax: RUN [<line number>]
The BASIC command RUN starts a BASIC program. When no line number is given, the program will be started at the first line number. By starting with RUN the stack is deleted, while the BASIC command CLR is executed automatically in the background.
When RUN is given a line number, it will start the program at this line number. If this line number does not exist, the BASIC error message ?UNDEF'D STATEMENT ERROR IN line will be reported.
RUN can be used in BASIC programs.
10 INPUT "Which Game you want to start (1 or 2)? " A$ 20 A = VAL(A$) 30 IF A<1 OR A>2 THEN RUN: REM by wrong key- restart 40 IF A=1 THEN RUN 10000: REM gamestart in line 10.000 50 IF A=2 THEN RUN 20000: REM gamestart in line 20.000 60 END 10000 PRINT "You have started game 1": END 20000 PRINT "You have started game 2": END