EasyManua.ls Logo

Commodore 1570 - Page 24

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...
Hint
#4:
To reset drive, type: OPEN 15,S,15,"UJ":CLOSE 15. This also applies to
sending a VI
+
or
a VI.
SAVE
Vse the SAVE command
to
preserve a program or
file
on a diskette for later use.
Before you can SAVE
to
diskette, the diskette must be formatted,
as
described
earlier.
FORMAT FOR THE SAVE COMMAND
SAVE
"drive
#:file name" ,device #
where "file name" is any string expression
of
up to
16
characters, preceded by the drive
number and a colon, and followed by the device number
of
the disk, normally
S.
However, the SAVE command will not work
in
copying programs that are not in the
BASIC text area, such as
"DOS
5.1"
for the C64. To copy it and similar machine-
language programs, you will need a machine-language monitor program.
FORMAT FOR A MONITOR SAVE
.S "drive #:file name" ,device # ,starting address,ending address
+ 1
where "drive
#:"
is
the drive number, 0 on the 1571; "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
OS
(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 "O:DOS
5.1"
,OS,CCOO,DOOO
SAVE WITH REPLACE OPTION
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.
16

Related product manuals