Mail Archives: djgpp/1997/11/27/06:40:57
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 -