Commodore vic-1540 User Manual page 25

Table of Contents

Advertisement

"NEWdr:fn,xx"
or
"Ndrfnjcx"
Where
d=the drive number 0 (0 may be omitted)
fn=the file name you wish to assign to the disk. It may be up to
16 characters long.
xx=a unique two-character, alphanumeric identifier supplied by
the user.
The NEW command (with ID specified) is used on an unformatted diskette or
one which the user wishes to reformat. NEW creates the block headers, writing
the sync characters, disk ID, and track and sector numbers at the beginning of
each block. The directory header and the BAM are created and the diskette is
made ready to accept data. The command may be used on an already formatted
diskette (with no ID specified) to clear the disk directory and reinitialize the
BAM, deallocating all blocks on the diskette. The time involved in reformatting
without an ID is much less than formatting with an ID.
Example 1:
OPEN 15,8,15
PRINT#15, "NO:TESTDISK, 88"
These commands will open the command and error channel to the disk drive
and format a disk in the drive, giving it a disk identifer of 88.
The following simplified form may be used for this purpose:
Example 2:
OPEN 15, 8,15, "NO:TESTDISK, 88"
Here's an example of reformatting a diskette using the NEW command and no
disk ID.
Example 3:
OPEN 1,8,15, "NO :NEWNAME"
The diskette will be assigned the name "NEWNAME" and the directory and
BAM will be cleared. This procedure will work only if the diskette has been
formatted.
The NEW disk command SHOULD NOT be confused with the NEW command
18

Advertisement

Table of Contents
loading

Table of Contents