Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!warwick!estdwha From: estdwha@warwick.ac.uk (CrisP) Newsgroups: comp.sys.amiga.programmer Subject: Re: COMMAND TO FIND OUT FREE MEMORY AVAILABLE ON SAS C???? Message-ID: <1991Feb3.043150.2452@warwick.ac.uk> Date: 3 Feb 91 04:31:50 GMT References: <1991Jan25.161423.26901@rodan.acs.syr.edu> <1991Jan26.051115.12062@msuinfo.cl.msu.edu> Sender: news@warwick.ac.uk (Network news) Organization: Computing Services, Warwick University, UK Lines: 35 In article Jay@deepthot.UUCP (Jay Denebeim) writes: >In article <1991Jan26.051115.12062@msuinfo.cl.msu.edu> jap@convex.cl.msu.edu (Joe Porkka) writes: >>goldberg@rodan.acs.syr.edu (Ross Goldberg) writes: >> >>>Is there a relatively simple procedure or command to return in bytes >> >>bytes = AvailMem(MEMF_CHIP) Number of FAST mem bytes free ^^^^ I think that was suppost to be CHIP. >>bytes = AvailMem(MEMF_FAST) Number of FAST mem bytes free >>bytes = AvailMem(MEMF_CLEAR) Number of zero bytes free >>bytes = AvailMem(0) Total Number of bytes free > >Missed one: > >bytes = AvailMem(MEMF_LARGEST) Largest free block. (this is the > largest segment you can actually > allocate) > You can also combine them: bytes = AvailMem(MEMF_CHIP | MEMF_LARGEST) Largest free block of CHIP memory. bytes = AvailMem(MEMF_FAST | MEMF_LARGEST) Largest free block of FAST memory. You can also combine tme all with the uninplemented MEMF_PUBLIC. One thing I always wondered about is what does AvailMem(MEMF_CLEAR) mean? ~CrisP. -- ------------------------------------------------- crisp@uk.ac.warwick.cs | estdwha@uk.ac.warwick.cu -------------------------------------------------