Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I format a 1581 disk?

1,441 views
Skip to first unread message

purita...@yahoo.com

unread,
Oct 5, 2006, 1:40:33 PM10/5/06
to
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?

thewises

unread,
Oct 5, 2006, 1:52:35 PM10/5/06
to
> 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?

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.

Leif Bloomquist

unread,
Oct 5, 2006, 2:09:30 PM10/5/06
to

"thewises" <thew...@enter.net> wrote in message
news:Xns98538D39F45A8...@198.186.192.136...

> 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.


Paul Rosenzweig

unread,
Oct 5, 2006, 2:13:07 PM10/5/06
to
purita...@yahoo.com wrote:
> 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?

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

rebocardo

unread,
Oct 5, 2006, 3:40:55 PM10/5/06
to
header"diskname",Iaa,D0,U8

I=disk id two alpha numeric characters
D0 = Drive Zero
U8 = unit 8

If your drive is #9, then it would be U9.


Sam Gillett

unread,
Oct 6, 2006, 12:43:13 AM10/6/06
to

<purita...@yahoo.com> wrote ...

>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!

Glenn P.,

unread,
Oct 6, 2006, 7:15:54 AM10/6/06
to

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! ::

j...@photojim.ca

unread,
Oct 13, 2006, 5:50:30 PM10/13/06
to

Glenn P., wrote:
>
> 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.

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

0 new messages