EasyManua.ls Logo

Commodore 1570 - Page 32

Commodore 1570
132 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
INITIALIZE
One command that should not often
be
needed on the 1571, but
is
still
of
occasional
value is INITIALIZE. On the 1571, and nearly all other Commodore drives, this function
is
performed automatically, whenever a new diskette
is
inserted. (The optical write-
protect switch
is
used
to
sense when a diskette
is
changed.)
The result
of
an INITIALIZE, whether forced
by
a command, or done automatically
by the disk,
is
a re-reading
of
the current diskette's BAM into a disk buffer. This
information must always be correct in order for the disk
to
store new files properly.
However, since the chore
is
handled automatically, the only time you'd need
to
use the com-
mand
is
if something happened
to
make the information in the drive buffers unreliable.
FORMAT FOR THE INITIALIZE COMMAND
EXAMPLE:
PRINT#
15, "INITIALIZEdrive
#"
PRINT # 15, "INITIALIZE
0"
or it may be abbreviated
to
PRINT#15,"ldrive
#"
PRINT#15,
"10"
where the command channel
is
assumed
to
be opened
by
file
15, and "drive
#"
is
0.
One use for Initialize
is
to
keep a cleaning diskette spinning, if you choose
to
use
one. (There
is
no
need
to
use such kits on any regular basis under normal conditions
of
cleanliness and care.) Nonetheless,
if
you are using such a kit, the following short
program will keep the diskette spinning long enough for your need:
10
OPEN 15,8,15
20 FOR
1=1
TO
15
30 PRINT#15,
"10"
40 NEXT I
50 CLOSE
15
It uses an Initialize loop
to
keep the drive motor on for about 20 seconds.
24

Related product manuals