Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!bruce!dec15!davison From: davison@dec15.cs.monash.edu.au Newsgroups: comp.os.msdos.programmer Subject: Re: Removing disks Message-ID: Date: 19 Jun 91 00:12:33 GMT References: <1991Jun17.222559.23301@wpi.WPI.EDU> Sender: news@bruce.cs.monash.OZ.AU Lines: 34 In <1991Jun17.222559.23301@wpi.WPI.EDU> jrusso@wpi.WPI.EDU (Jeffrey K Russo) writes: >In article jlee@smylex.UUCP (Jeff Lee) writes: >>I wish to write a "MacPuke"-type TSR for PC's with Sound Blasters. >>Unfortunately, the program depends on detecting when a disk is removed from >>the drive, and so far I have been unable to do this. >> >>Do PC floppy drives generate a hardware interrupt when the disk is removed? >>If so, how can I distinguish them from other disk interrupts? >I think most PC drives are mechanical (read: hand-operated) in the way they >release their disks. There isn't any way for the computer to know when the >disk has been removed other than attempting to read it. >There may be some "electrically" operated 3.5" drives out there (I've never >run across any though) but I doubt this would be possible with a 5.25". >If anyone can prove me wrong I'd definately like to hear from them as I'd >be interested in this information too. I've just had some problems with my 3.5" drive, and the advice was to check that a jumper on the drive was enabling the "disk change" signal. There must be some way to monitor this signal, since it seems to tell DOS to clear it's buffers (at least for 3.5" drives...) If you get it working, mail me with some details Regards, Andrew /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~) / The simple things in life are often the best.... / / (davison@bruce.cs.monash.edu.au)/ (_______________________________________________________________/