From: "David Archer" To: Subject: RE: Total memory? Date: Thu, 15 Feb 2001 20:46:31 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: <01FD6EC775C6D4119CDF0090273F74A4021F60@emwatent02.meters.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Reply-To: opendos AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: opendos AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi Darrin, You probably already know how to do this in DOS. It might be useful to be able to call such within TouchPro now that we're topping out in the lower 640k, i.e., when troubleshooting is required. David -----Original Message----- From: da Silva, Joe [mailto:Joe DOT daSilva AT emailmetering DOT com] Sent: February 15, 2001 7:52 PM To: 'opendos AT delorie DOT com' Subject: RE: Total memory? The amount of conventional memory is returned by interrupt $12. The amount of extended memory is returned by interrupt $15, function $88. Beware however, that interrupt $15 can crash some XT machines! You can find further details on these interrupts in Ralf Brown's Interrupt List, of course (http://www.cs.cmu.edu/~ralf/files.html). You can also find details in Dave Williams' DOSREF (demo version available at http://www.darklogic.org/fdos/ftp/dosref/). A very good, easy to read reference, but somewhat out-of-date ... Joe. > -----Original Message----- > From: Alain [SMTP:alainm AT pobox DOT com] > Sent: Friday, 16 February 2001 5:55 > To: opendos AT delorie DOT com > Subject: Re: Total memory? > > Pat wrote: > >On most systems I have seen, there is a check for the amount on startup. > >It runs by pretty fast but it is there long enough to see it. It shows > >the number of bytes on mine and does not round off to megabytes. > [...] > > Yes, thanks for all that information, but I did not explain very well my > question: I need to discover that information from within a program, > or in other words I need a function that gives me the information. > There are functions that tell me the available memory, but if > someone has allocated a big chunk of memory (say for some > buffer) my estimative can get fouled... > > Alain >