Mark Wickens

LIST [ALL]

Purpose

Displays all or part of the current specified program.

Format

         {  [start line number] [- [end line number]]  }
         {   -----------------      ---------------    }
  LIST   {     Line number             Line number     }
         {  [.]                                        }
         {  [ALL]                                      }

Example

LIST 100
LIST 100 - 300
LIST - 400
LIST

Parameters

  1. start line number: Integer in the range of 1 <= line number <= 65535 (first line number when start omitted)
  2. end line number: Integer in the range of 1 <= line number <= 65535 (end line number when end omitted)

Explanation

  1. Displays the currently specified program in the range specified by the line numbers.
  2. A minus sign must be used as the delimiter between line numbers.
  3. The following five examples illustrate specification of the display range.
Command Explanation
LIST EXE (All lines from beginning of program)
LIST 30 EXE (Line 30)
LIST 50-100 EXE (Lines 50 through 100)
LIST 200- EXE (From line 200 through end of program)
LIST -80 EXE (From beginning of program through line 80
  1. Using a period in place of the line number displays the most recently handled (i.e. written, edited, executed). If a program is halted during execution by an error, executing LIST . displays the line in whcih the error was generated.
  2. When the specified start line number does not exist, the first line number above that specified is taken as the start line number.
  3. When the specified end line number does not exist, the greatest line number not exceeding that specified in taken as the end line number.
  4. The start line number must be smaller than the end line number.
  5. LIST command execution can be halted by pressing the BRK key.
  6. Press the STOP key to momentarily halt LIST command execution. To restart execution, press the EXE key or one of the alphanumeric keys.
  7. The computer stands by for command input after the program list is displayed.
  8. This command cannot be used when a password is registered.
  9. This command cannot be used in the CAL mode.
  10. Specifying ALL displays all programs in sequence from area P0 through P9.

See