Mail Archives: djgpp-workers/1996/10/08/10:26:04
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.
- Raw text -