List – Remote Processing CAMBASIC User Manual

Page 105

Advertising
background image

Comm ands - 72

LIST

Command

SYNTAX:

LIST [line [– [line]]]
LIST #n, [line [– [line]]]
LIST!

PURPOSE:

To list a part or all of the program curr ently in memory.

REMARK S:

You can stop the listing by pressing < ESC> . The program is listed through the COM1 serial port
unless you specify otherwise.

The basic variations are:

LIST

list the entire program to COM1

/

quick version of above

LIST #1

list the entire program to COM1

LIST #2

list the entire program to COM2

LIST.

l is t 1 6 li ne s at a t im e

LIST!

list program with no line numbers

For simplicity the next group of variations shown for COM 1:

LIST 50

list only line 50

LIST 100– 500

list from the line 100 to line 500

LIST 220–

list from line 220 to the end of the program

LIST – 50

list from the beginning of the program to line 50

To comb ine the two groups of va riations:

LIST #2, 10– 200

list through COM2 fr om line 10 to line 200.

LIST.

lists 16 lines at a time. Pressing the space bar will list the next 16 lines. Pressing any other
key will abor t the listing. The com mand is va lid only on the C OM 1 port.

You can use the optional line numbers to define a range.

RELATED:

none

Advertising