EasyManua.ls Logo

Commodore 1581 - Save With Replace Command

Commodore 1581
138 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...
FORMAT FOR
A
MONITOR
SAVE
S "drive
#:file
name",device
#,starting
address,ending
ad
dress
+1
where
"drive
#:"
is
the
drive
number,
0
on
the
1581;
"file
name"
is
any
valid
file
name
up
to
14
characters
long
(leaving
two
for
the
drive
number
and
colon);
"device
#"
is
a
two
digit
device
number,
normally
08
(the
leading
0
is
required);
and
the
addresses
to
be
saved
are
given
in
Hexadecimal
but
without
a
leading
dollar
sign
($).
Note
the
ending
address
listed
must
be
one
location
beyond
the
last
location
to
be
saved.
EXAMPLE:
Here
is
the
required
syntax
to
SAVE
a
copy
of
"DOS
5.1"
S
"0:DOS
5.r,08,CC00,D000
SAVE
WITH
REPLACE
If
a
file
already
exists,
it
can't
be
saved
again
with
the
same
name
because
the
disk
drive
only
allows
one
copy
of
any
given
file
name
per
diskette.
It is
possible
to
get
around
this
problem
using
the
RENAME
and
SCRATCH
commands
described
later.
However,
if
all
you
wish
to
do
is
replace
a
program
or
data
file
with
a
revised
version,
another
command
is
more
convenient.
Known
as
SAVE-WITH-REPLACE,
or
@SAVE,
this
option
tells
the
disk
drive
to
replace
any
file
it
finds
in
the
diskette
directory
with
the
same
name,
substituting
the
new
file
for
the
old
version.
FORMAT
FOR
SAVE
WITH
REPLACE:
SAVE"@Drive
#:file
name",
device
#
where
all
the
parameters
are
as
usual
except
for
adding
a
leading
"at"
sign
(@.)
The
"drive
#:"
is
required
here.
EXAMPLE:
SAVE"@0:REVISED
PROGRAM",8
The
actual
procedure
is
that
the
new
version
is
saved
completely,
then
the
old
version
is
erased.
Because
it
works
this
way,
there
is little
18

Table of Contents

Other manuals for Commodore 1581

Related product manuals