Commands

Previous  Next

 

MyBASIC2 Commands

 


 

If no command qualifiers or parameters are specified, MyBASIC2 will enter a simple Standalone Interpreter mode.  Note that programs run in this mode will only run in the Windows Command Line Environment using standard input and output for  INPUT and PRINT.

 

The following commands are available in this mode:

 

 

HELP

 

Display MyBASIC2 Reference Documentation.

CLS

 

Clears Screen

DEBUG

 

Loads the Command Line Debugger with the current file.  You can use debugger commands to debug and run the program.

NEW

 

Closes any previously loaded file(s).  To create a new file, use EDIT.  This will invoke the Windows Notepad.  After you have edited the source file, save it as a .BAS type and the use the LOAD and RUN commands to load and run the file.

 

LOAD

 

Loads a MyBASIC2 source or compiled file.  After it has been loaded, you can run or edit the file.  Note; you can only edit source files (.BAS)

RUN

 

Runs the currently loaded file.

LIST

 

Displays the source code of the currently loaded file.  This command is not valid with compiled files.

EDIT

 

Edit the currently loaded file or create a new file using Windows Notepad.  Note; you can't edit a compiled file.

KILL

 

Delete a file

BYE

 

Exits the MyBASIC2 Standalone Interpreter.

 

 

Example

 

c:> MYBASIC2

MyBASIC2 Version 3.2.0001 Standalone Interpreter

MyBASIC2> load hello.bas

MyBASIC2> list

PRINT "*** Hello World ***",

END

MyBASIC2> run

*** Hello World ***

MyBASIC2> bye