Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!miro.Berkeley.EDU!dlee
From: dlee@miro.Berkeley.EDU (David Lee)
Newsgroups: comp.sys.mac
Subject: Disk Initializing Help Needed
Message-ID: <16664@ucbvax.BERKELEY.EDU>
Date: Fri, 19-Dec-86 02:34:52 EST
Article-I.D.: ucbvax.16664
Posted: Fri Dec 19 02:34:52 1986
Date-Received: Fri, 19-Dec-86 07:22:04 EST
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: dlee@miro.Berkeley.EDU (David Lee)
Organization: University of California, Berkeley
Lines: 39


I am in need of any help on how I can initialize (format) single-sided and
double-sided disks using the Package Manager. Inside Mac 2 describes the
_Pack2 trap call which can be used to initialize disks but it is very vague
on specifics and gives no examples. Inside Mac 4 makes mention of initializing
disks but again gives no examples. Actually, I have been using the following
68000 assembly language code to format single-sided disks successfully with
Finder 4.1 on a standard 512K Mac but the same code does nothing but return
an error code on a Mac+ with Finder 5.3:

           InitDisk    CLR.W   -(SP)
                       MOVE.W  #2,-(SP)     ;drive number (external)
                       MOVE.W  #6,-(SP)     ;routine selector# (DIformat)
                       _Pack2
                       MOVE.W  (SP)+,D0     ;result code
                       RTS

Before I actually call the above procedure I first call another procedure that
actually loads the Disk Initialization Package:

           LoadInit    MOVE.W  #2,-(SP)     ;routine selector# (DIload)
                       _Pack2
                       RTS

Again, the above InitDisk procedure will initialize single-sided disks with 
Finder 4.1 on a 512K Mac but only returns an error code on a Mac+ using 
Finder 5.3. I am interested in an assembly language procedure that will
initialize single-sided disks on both a 512K Mac and Mac+ with Finder 5.3.
I would appreciate any help or suggestions on the proper way of initializing
disks (single-sided and double-sided) with Finder 5.3 using the Package Manager
or any other method. One last note, I tried using the above InitDisk 
procedure on a Mac+ with Finder 4.1 but this didn't help any, it only seems
to work on a 512K Mac.

Thank you,
David Lee
dlee@miro.Berkeley.EDU