SAM Coupe Disk Drive Manual 12
SAVING A FILE
AND VERIFYING
"The first rule
of intelligent
tinkering is to
save all the
parts"
(Paul Ehrlich)
LOADING A
FILE
Take a copy of your system disk, and put it
in your disk drive.
Now enter this short program called
"Squares", which we'll use to illustrate the
various drive operations.
10 REM Squares
20 FOR n=1 TO 10
30 PRINT n,n*n
40 NEXT n
Then, to SAVE the program on the disk in
drive 1, type: SAVE "Squares".
Squares is now your file-name. Don't forget
that file-names can be any combination of
letters and numbers - or even spaces - but
the maximum number of characters is 10. You
can use upper or lower case characters, or
both - so "THIS file" would be the same file
as "ThIs FiLe", although "THISfile" would be
a new file. (Don't use the characters ? or
in your file-names, as they have special
uses; we'll come to this later.)
Now check that the file has been correctly
SAVEd by typing: VERIFY "Squares".
An OK message at the bottom of the screen
will confirm the SAVE. Now, clear Squares
from the computer's memory by typing NEW.
Now you can reLOAD Squares from the disk
with: LOAD "Squares"
When the OK message appears, the program has
been loaded. But so far we haven't given an
instruction to make the program
automatically run when it is LOADed. Let's
do that now with: SAVE "Squares" LINE 10
But of course there's already a program
called Squares SAVEd on the disk. The Coupe
tells you this and asks whether you wish to
overwrite the existing file by typing Y
(Yes) or N (No). Type Y <RETURN>. Then:
LOAD "Squares"
When LOADing files the Coupe will look for
the file on the last device used. Thus, if
you have entered the command DIR 2 before
issuing the LOAD command, the Coupe will
look on drive 2. Similarly, if you have
performed a command using drive 1, the Coupe
will look on drive 1.
Содержание SAM drive
Страница 1: ......