SAM Coupe Disk Drive Manual 17
PRINTING THE
DIRECTORY
PROTECTION –
"Memory is more
indelible than
ink"
(Anita Loos)
- IS NOT
INFALLIBLE
HIDDEN FILES
"Stay out of sight
and you'll stay out
of trouble"
(John F Kennedy)
READING AND
WRITING TO A
SECTOR
To print out the DIRectory on your printer,
you can use the special DIR #3 command. For
example, to send the DIRectory on drive 1 to
the printer, type: DIR #3;1
To print a short DIRectory from drive 2,
type: DIR #3;2!
You can protect an individual file from
being ERASEd by typing the command:
PROTECT "file-name"
Protection can be removed by:
PROTECT OFF "file-name"
When a file is protected, it's still
possible to SAVE or ERASE over it.
SAVE OVER "file-name"
ERASE OVER "file-name"
Also you can COPY the contents of a file
(say 'new-file') OVER the contents of
another file (say 'old-file').
COPY OVER "new-file" TO "old-file"
The above will copy the contents 'new-file'
to 'old-file'; 'old-file' will keep its
original name. This will work even if 'oldfile' is PROTECTed.
You can hide files too. Simply type:
HIDE "file-name"
and it will no longer appear in your
DIRectory. HIDE OFF "file-name" does just
what you'd expect. But watch out! Hidden
files can still be ERASEd OVER or SAVEd
OVER. When you HIDE a file, it becomes both
HIDdEn and PROTECTed.
This is for more advanced users, allowing
you to read from or write to a specified
sector on the disk. The command is:
READ AT D,T,S,Address
WRITE AT D,T,S,Address
D = the drive number (
type 1 or 2, not D)
T = the track number (
from 0 to 79 on side 1;
from 128 to 207 on side 2)
S = the sector number (from 1 to 10)
Address =
the start of a 512 byte area in the
memory, where the contents of the
sector are stored. (Must be less than 65536).
For further information on the directory
structure see the Technical Manual (3.0 or
later).