Introduction
to
BASIC-80
1-4

Loading

a

Program

The LOAD command loads a
BASIC-SO
program from disk. The program can be
stored in either ASCII
or
internal format.
To
load a program named ANL YZE from
a disk in drive
1:
LOAD ":F1 :ANLYZE"
OK
You can now run, list, or edit the program.

Saving

a Program

The SAVE command copies your program from Intellec memory to disk. You must
specify a filename, enclosed in quotation marks:
SAVE ":F1 :ANLYZ"
The SAVE command can also be used to list the contents
of
the current file on a line
printer or other output device. For example, to list the current file on a line printer,
you would enter:
SAVE
":LP:"
,A
4"4;0"1"
You can only write data to one disk in any disk drive each time you invoke
BASIC.
If
you write to a disk in a given drive, remove that disk and insert
another, and try to write to the new disk, you lose all data on the
new
disk.
The exception to this
is
on systems with more than one drive.
It
is
permissi-
ble to change a disk on a drive if that drive has not been written to since
another drive has been written to.
As
an example, if your
BASIC-SO
pro-
gram writes
on
a file in drive 0, and you then remove that disk, insert
another and write on it, the contents
of
that second disk
will
be lost.
If,
however, your program wrote on a disk in drive 1 between writing on the
different disks in drive 0, there would be no problem.
There are no restrictions on reading from disks.
BASIC-80