Subject: Re: MemTop
To: Rick C. Petty <pett0019@gold.tc.umn.edu>
From: The Great Mr. Kurtz <davagatw@mars.utm.edu>
List: port-mac68k
Date: 12/21/1995 21:46:35
On Thu, 21 Dec 1995, Rick C. Petty wrote:

> On Fri, 15 Dec 1995, The Great Mr. Kurtz <davagatw@mars.utm.edu> wrote:
> 
> > > There are gestalt calls for it, but the problem is how to determine it
> > > in the first place...  I think the ROM does it as part of the power-on
> > > sequence and it stores it in some low-memory global or something.
> > > Perhaps.
> > 
> > Try: MemTop EQU $108        ; top of memory [pointer]
> > From: Encyclopedic Mac Rom p.897.
> 
> I'm not sure about that.  It _should_ be the amount of RAM, but I never 
> believe it.  Today I checked my MemTop, and it told me that I had 1.53 Meg 
> of RAM, which I know is incorrect:  I have 4 real and 12 virtual...  

It says my PowerMac has 0 bytes of memory.  :-)  Basically, I get the 
feeling that Apple has changed a few of those globals, though I'm not 
sure.  Tried the fn gestalt(_MemTop) call.  It also says I have 0 bytes of 
memory....  Something's up here.  Anybody know of a better way to do this?

 /---------------------------------------------------------------------\
|David A. Gatwood             And Richard Cory, one calm summer night,  |
|davagatw@mars              Went home and put a bullet through his head.|
|dgatwood@nyx.cs.du.edu              --Edwin Arlington Robinson         |
|http://mars.utm.edu/~davagatw -or- http://nox.cs.du.edu:8001/~dgatwood |
 \---------------------------------------------------------------------/