Article View: comp.os.msdos.programmer
Article #4860Re: insert diskette in drive B
From: juseppala
Date: Sun, 24 Feb 1991 19:30
Date: Sun, 24 Feb 1991 19:30
21 lines
1619 bytes
1619 bytes
In article <666@sun4dts.dts.ine.philips.nl>, derek@sun4dts.dts.ine.philips.nl (derek) writes:
> I'm doing this from memory, no docs with me, which is why I'm posting rather than
> mailing this reply, in th ehope that someone will fill in the details I have to
> leave out.
>
> At a certain MS-DOS release (3.2 I think) an IOCTL subfunction was added which
> would allow you to check if the current logical drive was the last one accessed
> (remember drive A: is always accessed at boot). Anyway this is exactly the
> function (DOS interrupt that is) that you want. Do the interrupt, get the
> result, then access the disk, or change the logical drive yourself, if you
> need too.
Interrupt 21h, function 440Eh. AH = 44h, AL = 0E, BL = drive number to
be inquired. Returns the last used drive number in AL. I think this is
the contents of address 0040:0104.
--
Terv.
Juha I. Sepp{l{
Oikokatu 15 B 26 / INTERNET: juseppala@cc.helsinki.fi
00170 Helsinki 17 / EARN: juseppal@finuh.bitnet
tel. +358 0 1355690 / ARPA: juseppal%finuh@cunyvm.cuny.EDU
Technical Details
Message-ID:
<1991Feb24.193017.5151@cc.helsinki.fi>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!bloom-beacon!eru!hagbard!sunic!news.funet.fi!hydra!cc.helsinki.fi!juseppalaReferences:
<090905.3866@timbuk.cray.com> <666@sun4dts.dts.ine.philips.nl>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!bloom-beacon!eru!hagbard!sunic!news.funet.fi!hydra!cc.helsinki.fi!juseppala From: juseppala@cc.helsinki.fi Newsgroups: comp.os.msdos.programmer Subject: Re: insert diskette in drive B Message-ID: <1991Feb24.193017.5151@cc.helsinki.fi> Date: 24 Feb 91 19:30:16 GMT References: <090905.3866@timbuk.cray.com> <666@sun4dts.dts.ine.philips.nl> Organization: University of Helsinki Lines: 21