Commodore 128 System Manual page 285

Hide thumbs Also See for 128:
Table of Contents

Advertisement

The word LET is rarely used in programs, since it is not
necessary. Whenever a variable is defined or given a value, LET
is always implied. The variable name that receives the result of a
calculation is on the left side of the equal sign. The number, string
or formula is on the right side. You can only assign one value with
each (implied) LET statement. For example, LET A = B = 2 is not
(normally) legal.
EXAMPLE:
10 LET A = 5
Assign the value 5 to numeric variable A.
20 B = 6
Assign the value 6 to numeric variable B.
3 0 C = A * B + 3
Assign the numeric variable C, the value resulting from 5 times 6
plus 3.
40 D$ = "HELLO"
Assign the string " HELLO" to string variable D$.
LIST
List the BASIC program currently in memory
LIST[line| first-| first-lastj -last]
The LIST command displays a BASIC program listing that has
been typed or LOADed into the Commodore 128's memory so
you can read and edit it. When LIST is used alone (without
numbers following it), the Commodore 128 gives a complete
LISTing of the program on the screen. The listing process may be
slowed down by holding down the COMMODORE key, paused by
CONTROL S or NO SCROLL KEY (and resumed by pressing any
other key), or stopped by hitting the RUN/STOP key. If the word
LIST is followed by a line number, the Commodore 128 shows
only that line number. If LIST is typed with two numbers
separated by a dash all lines from the first to the second line
number are displayed. If LIST is typed followed by a number and
17-43

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

128d

Table of Contents