Date: Tue, 8 Oct 1996 16:17:20 +0200 (IST) From: Eli Zaretskii To: Mark Habersack Cc: "John M. Aldrich" , djgpp-workers AT delorie DOT com Subject: Re: Stub error messages (Was: Re: 'Cannot open') In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 8 Oct 1996, Mark Habersack wrote: > exact amount of memory stored elsewhere, but where? For now, the only solution > seems to be a 'brute force' method, namely the one used by BIOS POST code. It > just writes patterns to memory and reads them back, comparing whether they are > returned correctly. If it writes to an address which is non-existent on the > computer - it'll know that's the end of installed memory. BTW. This is exactly I would suggest something much simpler: if you get 0 from the code I posted, just tell them that they have ``at least 128MB of memory''. Machines which have that much, really don't have to worry about the exact number... A still better solution is to check the physical memory returned by the DPMI functions, and if it's more than 128MB, add 128MB to the value returned by CMOS.