int e l 2.3 DESCRIPTION OF COMMANDS: COMMAND: LlST(cr) ACTION TAKEN: The LlST(cr) command prints the program to the console device. Note that the list command "formats" the program in an easy to read manner. Spaces are inserted after the line number and before and after statements. This feature is designed to aid in the debugging of MCS BASIC-52 programs. The "listing" of a program may be terminated at anytime by typing a control-C on the console device. VARIATIONS: Two variations of the LIST COMMAND are possible with MCS BASIC-52. They are:
LIST [ln num] (cr) and LIST [ln num] -- [ln num] (cr) The first variation causes the program to be printed from the designated line number (integer) to the end of the program. The second variation causes the program to be printed from the first line number (integer) to the second line number (integer). NOTE -- the two line numbers MUST BE SEPARATED BY A DASH - . EXAMPLE: READY >LIST 10 PRINT "LOOP PROGRAM" 20 FOR I=1 TO 3 30 PRINT I 40 NEXT I 50 END READY >LIST 30 30 PRINT I 40 NEXT I 50 END READY >LIST 20-40 20 FOR I=1 TO 3 30 PRINT I 40 NEXT I - 15 -