Commodore 128 Programmer's Reference Manual page 60

Hide thumbs Also See for 128:
Table of Contents

Advertisement

50
COMMODORE 128
20 B = 6
Assign the value 6 to numeric variable B.
3OC = 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 [first line] [- last line]
In C128 mode, LIST can be used within a program without terminating program execution.
EXAMPLES:
LIST
Shows entire program.
LIST 100-
Shows from line 100 until the end of the program.
LIST 10
Shows only line 10.
LIST -100
Shows all lines from the beginning through line 100.
LIST 10-200
Shows lines from 10 to 200, inclusive.
LOAD
Load a program from a peripheral device such as the disk drive or Datassette
LOAD "filename" [,device number] [,relocate flag]
This is the command used to recall a program stored on disk or cassette tape. Here, the
filename is a program name up to 16 characters long, in quotes. The name must be
followed by a comma (outside the quotes) and a number which acts as a device number
to determine where the program is stored (disk or tape). If no number is supplied, the
Commodore 128 assumes device number 1 (the Datassette tape recorder).
EXAMPLES:
LOAD
Reads in the next program from tape.
LOAD "HELLO"
Searches tape for a program called HELLO, and
LOADs it if found.
LOAD (A$),8
LOADs the program from disk whose name is
stored in the variable A$.
LOAD* 'HELLO'' ,8
Looks for the program called HELLO on disk drive
number 8, drive 0. (This is equivalent to DLOAD
"HELLO").
LOAD"MACHLANG",8,1
LOADs the machine language program called
"MACHLANG" into the location from which it
was SAVEd.
u
u
y
u
o
u

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents