Article View: alt.msdos.programmer
Article #202Find number of floppy drives on an XT clone?
From: Duncan Murdoch
Date: Fri, 15 Sep 1989 02:25
Date: Fri, 15 Sep 1989 02:25
21 lines
1591 bytes
1591 bytes
I just bought a floppy head cleaner kit (after a bad experience with some crappy disks), and have been trying to write a program to exercise the heads while the cleaning disk is in place. DOS and the BIOS don't seem to like the idea of it at all, so I'm programming the floppy disk controller directly, according to instructions from Robert Jourdain's book. Things are going well when I give my program a valid drive number to work on. My problem is that I can't determine whether the drive number is valid. The DOS/BIOS services try to read the disk, so that's no good; the equipment list always tells me I have 2 floppy drives, when in fact I have one; the "Sense Drive Status" command described in Jourdain doesn't seem to give any different answer whether I ask about the drive that's there or the one that's not. I suspect a misprint, because there are lots of others in this section of the book. On an AT, I think I could query the CMOS RAM, but that doesn't help here. Can anyone tell me how to make this simple determination? And after that, is it safe to assume that any XT clone will be using 40 track disks? Duncan Murdoch
Technical Details
Message-ID:
<483@maytag.waterloo.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!maytag!watstat!dmurdochShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!maytag!watstat!dmurdoch From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc Subject: Find number of floppy drives on an XT clone? Message-ID: <483@maytag.waterloo.edu> Date: 15 Sep 89 02:25:52 GMT Sender: daemon@maytag.waterloo.edu Reply-To: dmurdoch@watstat.waterloo.edu (Duncan Murdoch) Organization: U. of Waterloo, Ontario Lines: 21