Did you by chance mean -0610.htm instead?
> which looks promising, although it comes with a warning:
> For systems predating the IBM AT, this call is only valid for hard
> disks
> which is a bit strange, given that I expected floppies to be the
> first things that were implemented.
> I assume that as part of the floppy disk formatting procedure, a BPB
> is written to the boot sector, containing information that "format"
> figured out from various BIOS calls querying the hardware.
The floppy disk itself is /not/ part of the hardware that can be
queried with BIOS calls; rather, it was the responsibility of
the /user/ to specify how the disk is to be formatted (which
would better to match its specs.)
Consider, e. g., the convenience /F:size option to FreeDOS
FORMAT, as well as low-level /T:, /N: options. [1]
From there, the algorithm is along these lines:
* decide what type of disk is being formatted (360k, ..., 2880k,
or custom);
* configure the drive for specified format with int 13h, ah =
17h or 18h [2, 3]; set the int 1eh vector to the value returned;
* for (i = 0; i < tracks; i++) format track i;
* repeat for the other side if formatting a double-side floppy.
* restore the int 1eh vector.
After formatting, it'd probably be wise to install a filesystem
on the disk, that is (assuming FAT12): a "boot sector" and one
or more FAT tables. But that's another story.
[1] format // FreeDOS commands.
URI:
http://help.fdos.org/en/hhstndrd/base/format.htm
[2] Int 13h: AH = 18h
URI:
http://www.ctyme.com/intr/rb-0643.htm
[3] Int 13h: AH = 17h
URI:
http://www.ctyme.com/intr/rb-0641.htm
[...]
--
FSF associate member #7257
http://am-1.org/~ivan/