TopMem
TopMem Get address of end of RAM
#include <Memory.h> Memory Manager
returns highest address in RAM
TopMem returns a pointer to the first byte beyond the end of physical RAM,
or to the end of memory available for applications.
Returns: a Ptr; the highest RAM address accessible.

Notes: The global variable MemTop (at 0x0108) carries this same information.
The Environs and SysEnvirons functions provide a lot of information
about the equipment you are running.
Other Memory Manager global variables include:
MemTop 0x108 Address of end of RAM
BufPtr 0x10C Address of end of jump table
HeapEnd 0x114 Address of end of application heap zone
TheZone 0x118 Address of current heap zone
ApplLimit 0x130 Application heap limit
SysZone 0x2A6 Address of system heap zone
ApplZone 0x2AA Address of application heap zone
ROMBase 0x2AE Address of start of ROM
RAMBase 0x2B2 Trap dispatch base for RAM routines
ScrnBase 0x824 Address of main screen buffer
CurrentA5 0x904 Start of application globals
CurStackBase 0x908 Address of the base of the stack