Commands

< Show List

Standard mumbleSoft-like Basic Commands


load STRINGEXPR

Load a program into memory from the named file. The program previously in memory is erased. All files are closed and all variables are cleared. Lines beginning with the '#' character will be treated as comments. All other lines in the file must begin with a line number. Duplicate line numbers are not allowed.


save STRINGEXPR

Save the current program to the named file.


new

Erase the program in memory. All files are closed and all variables are cleared


clear

All variables are cleared. All arrays and string variables are deallocated.


run { LINENUM }

run { STRINGEXPR { , LINENUM } }

Begin execution of the program at the first line, or at the specified line. All variables are cleared. If a STRINGEXPR is given then the BASIC program with that name file is loaded into memory first. Program lines are executed in line number order.


cont

CONTinue execution of the program on the next statement after the statement on which the program stopped execution due to a STOP command or an error. See BUGS section.


LINENUM { TEXT }

Enters a program line. If a program line with line number LINENUM exists, then it is replaced. If no TEXT is given, the the program line with line number LINENUM is deleted.


list

List the whole program. Line numbers above 999999999 will not list.

list 1-3

List lines 1 to 2

list -2

List lines up to 1

list 1

List line 1

list 2-

List lines from 2 on


merge STRINGEXPR

Loads a program into memory. The previous program remains in memory; variables are not cleared. If a line exists in both programs, the new merged line overwrites the old one.


renum STRINGEXPR VAL { , VAL { , VAL { , VAL} } }

Renumber program lines. By default, the new sequence is 10,20,30,... The first argument is a new initial line number; the second argument is the increment between line numbers. The third and fourth arguments, if present, specify a limiting range of old line numbers to renumber. Renum can be used to move non-overlapping blocks of code.


edit LINENUM

Brings up a very Old-style line editor.

Edit a single line. Enter return to finish. If the exit from edit mode is via a cntrl-c or 'q', then do not change the line.

i - insert till ESC
x - delete one char
A - append to end of line

del LINENUM [ - LINENUM ]

Delete a line or specified range of lines. If not found then no lines will be deleted.


exit

bye

quit

Terminates the basic interpreter, ending program execution and closing all files.