The following example shows how to find out how much memory of a particular type is available. ULONG size; size = AvailMem(MEMF_CHIP|MEMF_LARGEST); availmem() returns the size of the largest chunk of available chip memory. availmem() may not be totally accurate. --------------------------------------- Because of multitasking, the return value from AvailMem() may be inaccurate by the time you receive it. The following example shows how to determine the type of memory of a specified memory address. ULONG memtype; memtype = TypeOfMem((APTR)0x090000); if ((memtype & MEMF_CHIP) == MEMF_CHIP) {/* ...It's chip memory... */} typeofmem() returns the attributes of the memory at a specific address. if it is passed an invalid memory address, TypeOfMem() returns NULL. This routine is normally used to determine if a particular chunk of memory is in chip memory.