www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/27/06:40:57

Date: Thu, 27 Nov 1997 13:39:53 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Nate Eldredge <eldredge AT ap DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: biosmemory() problem
In-Reply-To: <199711262053.MAA16550@adit.ap.net>
Message-ID: <Pine.SUN.3.91.971127133846.5743Q-100000@is>
MIME-Version: 1.0

On Wed, 26 Nov 1997, Nate Eldredge wrote:

> >This service is not supposed to report more than 640K.  BIOS and DOS
> >don't care about anything beyond that.
> The documentation for it implies that it reports all the memory installed.
> It says that it will return 65535 if more than 64M of memory is
> there.

Where did you see that documentation?  Here's what the Interrupt List
says:

--------B-12---------------------------------
INT 12 - BIOS - GET MEMORY SIZE
Return: AX = kilobytes of contiguous memory starting at absolute address 00000h
Note:	this call returns the contents of the word at 0040h:0013h; in PC and
	  XT, this value is set from the switches on the motherboard

I see no implications here about anything beyond 640K.

> Should this be fixed?

I'm not sure.  `biosmemory' is a compatibility function, so it should
report whatever is compatible.  Borland's docs clearly says that it
calls Int 12h.  Can anybody check what does Borland's version report?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019