Mail Archives: opendos/2001/02/15/19:52:41
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
>
- Raw text -