Commodore 1551 User Manual page 29

Table of Contents

Advertisement

The alternate command is:
SA VE "drive#:file name" ,device#
where "file name" is any string expression of up to 16 characters, preceded by the drive#
(always 0 on the 1551) and followed by the device# (normally 8 unless you change it to 9)
Note: the "0:" at the start of tile names is a holdover from the days when all
Commodore disks had two drives in the same cabinet. Although the 1551 will
normally default to drive 0 (not having a drive I,) it is best to specify the drive
number whenever saving or writing a file. This avoids potential confusion in DOS
(the Disk Operating System.)
These commands will not work in copying programs that are not written in BAS[C.
To copy these machine language programs, you will need the S command of the machine
language monitor built into the Commodore 16 and Plus/4. To access a built-in monitor,
type MONITOR. To exit a monitor, type X alone on a line.
FORMAT FOR A MON[TOR SAVE
S "drive #:file name" ,device # ,starting address,ending address
+
I
where "drive #:" is the drive number, 0 on the [551; "file name" is any valid file name
up to 14 characters long (leaving 2 for the drive number and colon); "device #" is a two
digit device number, normally 08 on the 1551 (the leading 0 is required): and the
addresses to be saved are given in Hexadecimal (base 16,) but without a leading dollar
sign
($).
Note that the ending address listed must be I location beyond the last location to
be saved.
SA VE WITH REPLACE OPTION
If a file already exists, it can't be saved again because the disk only a[lows one copy
of any given tile name per diskette. It is possible to get around this problem using the
Rename and Scratch commands described later in this chapter. 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, this option tells the disk to replace any file it
finds in the directory with the same name. substituting the new file for it.
FORMAT FOR SAVE WITH REPLACE
DSA VE "((l·file name"
21

Advertisement

Table of Contents
loading

Table of Contents