🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
1 messages
1 total messages Started by Duncan Murdoch Fri, 15 Sep 1989 02:25
Find number of floppy drives on an XT clone?
#202
Author: Duncan Murdoch
Date: Fri, 15 Sep 1989 02:25
21 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads