To format a disk, use this command:
OPEN 15,8,15:PRINT# 15,"N:name,id":CLOSE 15
This performs a complete format of the disk. If you omit the ID, it
performs a "quick format". That is, it only clears the directory.
> To format a disk, use this command:
> OPEN 15,8,15:PRINT# 15,"N:name,id":CLOSE 15
He's using BASIC 7.0, so he can simply do:
HEADER "DISK NAME", I## where ## is any two-character identifier. Works on
a 1581 just fine.
Except for BURST data transmission commands, the 1581
instruction set is remarkably similar to that of the 1541.
Except for the SCRATCH, DLOAD, DVERIFY, DSAVE, and
DIRECTORY commands, I don't use BASIC 7 disk / file commands.
Here is the BASIC 2 command line for formatting a disk:
OPEN 15,D,15,"N0:diskname,id":INPUT#15,a$,b$,c$,d$:CLOSE15:?a$,b$,c$,d$
Without any special POKE commands, you can't do
an INPUT#15 command in immediate mode on a C64.
If a DOS wedge is active, do this:
@N0:diskname,id
In the C128 machine language monitor, do this:
@D,N0:diskname,id
I like the C128 monitor
I=disk id two alpha numeric characters
D0 = Drive Zero
U8 = unit 8
If your drive is #9, then it would be U9.
>I realize this is a pretty stupid question, but I have no manuals!
> What's the Basic 7.0 command to format a disk, and do I need to do
> anything special with a 1581?
You can find lots of docs for Commodore hardware on Project 64. Here is a
link to the home page there.
http://project64.c64.org/index.htm
The link below is to the page for C128 docs. Item # 2 is the C128 System
Guide (eText version). It includes a pretty detailed description of all of
the Basic 7.0 commands.
http://project64.c64.org/hw/c128.html
If the direct link to the C128 System Guide below does not work for some
strange reason, you can still get there from the link above by selecting item
# 2. ;-)
http://project64.c64.org/hw/c128%20System%20Guide.txt
The next link is to the periperials page. The 1581 Users Guide (zipped
eText) is item # 12.
http://project64.c64.org/hw/peri.html
Hope this info will help you enjoy your C128 and 1581. :-)
--
Best regards,
Sam Gillett
Change is inevitable,
except from vending machines!
If I remember correctly, HEADERD0,U8,"NAME,ID"
...where "0" is the drive (partition) number (only 0 or 1 is valid in
BASIC 7.0) and "8" is device number. "0" and "8" are the defaults.
-- _____
----------------------------- {~._.~} Astro Boy sets the pace,
"Glenn P.," _( Y )_ On your flight into space;
<C128UserD...@FVI.Net> (:_~*~_:) What can I do, to be like you?
----------------------------- (_)-(_) And become a real Astro Boy?
:: Take Note Of The Spam Block On My E-Mail Address! ::
Close:
HEADER "NAME",Ixx,Uy,Dz
Ixx - xx is the disk ID
Uy - y is the drive device number (8, 9, 10, 11...). If you're using
device 8 you can leave this off. I have my 1581 set to U11.
Dz - z is the drive number. On single floppy drives, this is always 0
and can be left off. On a dual floppy drive like the MSD2 the second
drive is 1 so you'd use D1.
HEADER "BLANKY",IBY,U11
is the same as
OPEN1,11,15,"N0:BLANKY,BY":CLOSE1
Jim