[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Init from AS



In article <1994Feb9.202324.24836@roxi.rz.fht-mannheim.de>
chk@aix01.rz.fht-mannheim.de (Karpp Christian) writes:
> hi,
> does anyone know if a simple basic program can be written under prodos to
> format a disk (5.25" & 3.5")?

Not a 5.25" disk.  ProDOS doesn't contain any code to format a 5.25"
disk - you have to write this code yourself (or license it from Apple.
It is a moderately large amount of machine code.

A 3.5" disk is somewhat easier, because the formatting routine is
provided by the interface card and/or drive.  This just does the
physical format - it doesn't set up the boot block, volume directory
or bitmap.

If you wanted to make a bootable disk, you would still need the boot
block image, and you have to set up the volume directory and bitmap,
which is not trivial.
-- 
David Empson                                                               
dempson@swell.actrix.gen.nz                                                
Snail mail: P.O. Box 27-103, Wellington, New Zealand