Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!uw-beaver!tektronix!sequent!mntgfx!gssc!mmm From: mmm@gssc.UUCP (Preacher McLain) Newsgroups: comp.sys.ibm.pc Subject: Re: MEM.COM problems: Finding DOS's segment? Message-ID: <370@gssc.UUCP> Date: Thu, 16-Apr-87 16:52:18 EST Article-I.D.: gssc.370 Posted: Thu Apr 16 16:52:18 1987 Date-Received: Fri, 24-Apr-87 06:13:30 EST References: <2524@dalcs.UUCP> Reply-To: mmm@gssc.UUCP (Preacher McLain) Organization: Graphic Software Systems, Beaverton Or Lines: 14 In article <2524@dalcs.UUCP> dalegass@dalcs.UUCP (Dale Gass) writes: > [other stuff deleted] >I have used the /0 interrupt segment value to find the segment >in which DOS resides, in order to pick up relevant memory mapping parameters. > [ditto] Try using Int 21h function 52h. It returns the beginning of DOS's memory map in Es. This, of course, is undocumented and subject to change in future DOS versions (the 3.x line, not the OS/2 line), but it's worked on 3.0, 3.1 and 3.2. I'm not sure about 3.3, but I don't see any reason why it won't work. -- Mitchell McLain ...hplabs!tektronix!sequent!gssc!EST