From: "David Archer" To: "da Silva, Joe" Cc: Subject: RE: Total memory? Date: Thu, 15 Feb 2001 21:52:41 -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: <01FD6EC775C6D4119CDF0090273F74A4021F64@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 I was confused too untill I realized that I'd hit reply vs. send (i.e., I had wanted to forward the message to Darrin, a personal contact of mine). Sincere apologies to all. David Archer -----Original Message----- From: da Silva, Joe [mailto:Joe DOT daSilva AT emailmetering DOT com] Sent: February 15, 2001 9:09 PM To: 'David Archer' Subject: RE: Total memory? Sorry ... but have I "lost something" here? Who is Darrin, what's this TouchPro thing, and is there another "thread" to this (ie. what has any of this got to do with the original query)? Confused. > -----Original Message----- > From: David Archer [SMTP:archerd AT intouchpos DOT com] > Sent: Friday, 16 February 2001 12:47 > To: opendos AT delorie DOT com > Subject: RE: Total memory? > > 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 > >