Message-ID: <01FD6EC775C6D4119CDF0090273F74A4021F60@emwatent02.meters.com.au> From: "da Silva, Joe" To: "'opendos AT delorie DOT com'" Subject: RE: Total memory? Date: Fri, 16 Feb 2001 11:52:06 +1100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain Reply-To: opendos AT delorie DOT com 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 >