Skip to content

Runtime Environment

Trey Tomes edited this page Dec 20, 2021 · 4 revisions

ECMABasic55 has a built-in REPL environment. It's not part of the standard, but it's dead useful for testing.

Run ecmabasic55 with no parameters to get the "OK" prompt.

Immediate Mode Commands

In addition to entering program lines, and running statements in immediate mode with no line number, you also have access to the following commands:

NEW

Wipe out the current program and any variables.

LOAD [FILE PATH]

Load a BASIC program file the given FILE PATH. An error will be printed if the file path doesn't exist.

RUN {LINE NUMBER}

Run the currently loaded program, starting either from program start or the optional line number. An error will be printed if the current program does not define LINE NUMBER.

CONTINUE

Continue running on the next line after the last STOP.

LIST {START}{-}{END}

  • Use LIST to list out the entire contents of your program.
  • LIST [START] will list out only the given line number.
  • LIST [START]- will list out the entire program starting at the given line number.
  • LIST -[END] will list out the entire program through the line number given.
  • LIST [START]-[END] will list out all of the program lines between the 2 end points, inclusive.

Miscellaneous

Any time a program is running, you can press the key to throw a STOP exception on that line number. The CONT/CONTINUE command can be used to resume execution.

Clone this wiki locally