Article View: comp.sys.ibm.pc.programmer
Article #686Help getting disk media byte w/out a diskette?
From: Frank Burleigh
Date: Mon, 11 Jun 1990 13:58
Date: Mon, 11 Jun 1990 13:58
25 lines
1663 bytes
1663 bytes
I'm looking for a procedure to determine the type of diskette a
drive may contain (e.g., a media descriptor byte [360KB 5.25",
1.44MB 3.5", etc.]) whether or not the drive contains a diskette.
Some possibilities and their drawbacks:
1. DOS 32h provides the needed data, but it is a) undocumented;
b) doesn't work if there is no disk in the drive (and may not
work if a diskette is unformatted).
2. DOS 1ch (get drive data) returns a pointer to the media byte,
but again must interrogate a diskette, failing if there is no
diskette or (presumably) if the diskette is unformatted.
2. ROM BIOS 13h (sub 8h) (get drive params) looks promissing: it
returns a descriptor byte, but the notation in Duncan, 2nd
ed. says it won't work for floppy drives on PCs and PC/XTs.
In summary, I'd appreciate suggestions of/pointers to a C or C-
callable assembly procedure that will identify the type of
diskette a drive may contain without actually hitting a diskette.
Thanks in advance for your ideas.
--
Frank Burleigh burleigh@cica.cica.indiana.edu
USENET: ...rutgers!iuvax!cica!burleigh BITNET: BURLEIGH@IUBACS.BITNET
Department of Sociology, Indiana University, Bloomington, Indiana 47405
Technical Details
Message-ID:
<1353@cica.cica.indiana.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cica!burleighShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!cica!burleigh From: burleigh@cica.cica.indiana.edu (Frank Burleigh) Newsgroups: comp.sys.ibm.pc.programmer Subject: Help getting disk media byte w/out a diskette? Keywords: identify drive's diskette type w/out it containing a disk Message-ID: <1353@cica.cica.indiana.edu> Date: 11 Jun 90 13:58:56 GMT Distribution: na Organization: IU, Bloomington Lines: 25