EasyManua.ls Logo

Commodore 128D - Page 279

Commodore 128D
427 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...
n
H
HEADER
H
—Format
a
diskette
HEADER
"diskname"
[,l
i.d.]
[9Ddrive
number]
[<ON
|
,)Udevice
number]
Before
a
new
disk
can be used
for
the
first
time,
it
must
be
formatted
with
the
HEADER
command.
The
HEADER
command
can
also
be
used
to
erase
a
previously
formatted
disk.
When
you
enter
a
HEADER
command
in
direct
mode,
the
prompt
ARE
YOU
SURE?
appears.
Press
the
Y
key
to
perform
the
HEADER
command
of
any
other
key
to
cancel
it.
This
command
divides
the
disk
into
sections
called
blocks.
It
creates
a
table
of
contents
of
files,
called
a
directory.
The
diskname
can
be
any
name
up
to
16
characters
long.
The
i.d.
number
is
any
two
alpha
numeric
characters.
Give
each
disk
a
unique
i.d.
number.
Be
careful
when
using
the
HEADER
command
because
it
erases
all
previously
stored
data.
You can
HEADER
a
diskette
quicker
if
it
was
already
formatted,
by
omitting
the
new
disk
i.d.
number.
The
old
i.d.
number
is
used.
The
quick
header
clears
out
the
directory
rather
than
formatting
the
disk.
The
default
device
number
is
8.
The
HEADER
command
reads
the
disk
command
error
channel,
and
if
an
error
is
encountered,
the
error
message
"?BAD
DISK
ERROR"
is
displayed.
The
HEADER
command
is
analogous
to
the
BASIC
2.0
command:
OPEN
1
A15,"N0:diskname,i.d."
EXAMPLES:
HEADER
"MYDISK",
I23
HEADER
"RECS",
I45,
D1
ON
U9
HEADER
"C128
PROGRAMS'9
This
HEADERS
"MYDISK"
using
i.d.
23
on
drive
0,
device
number
8.
This
HEADERS
"RECS"
using
i.d.
45,
on
Drive
1,
device
number
9
This
is
a
quick
header
on
drive
0,
device
number
8,
assuming
the
disk
in
the
drive
was
already
formatted.
The
old
i.d.
is
used.
271
BASIC
7.0
ENCYCLOPEDIA-Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals