home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.st.tech
- Path: sparky!uunet!mcsun!sun4nl!sci.kun.nl!sanders
- From: sanders@sci.kun.nl (Sander Stoks)
- Subject: Re: getmpb
- Message-ID: <BxuynL.81K@sci.kun.nl>
- Sender: news@sci.kun.nl (NUnet News Owner)
- Organization: University of Nijmegen, The Netherlands
- References: <b010d0aa@Kralizec.fido.zeta.org.au>
- Date: Tue, 17 Nov 1992 11:30:56 GMT
- Lines: 28
-
-
- In a message of <02 Nov 92 18:12:40>, pcxkrm@unicorn.nott.ac.uk (3:713/602)
- writes:
-
- p> Hi,
-
- p> As a person who has spent the last ten years programming almost solely
- p> in BASIC, the ins and outs of memory management are fairly new to me.
- p> I'm currently trying to write a program which needs to know where it is
- p> in memory. My GEMDOS information tells me that the 'C' call getmpb
- p> should do this - but it seems to return only the top of system memory or
- p> something - it gives the same thing every time with no pointer to a
- second
- p> block.
- p> Am I being very thick or is there some other way to find out my
- p> program's basepage? I'm running an STe with 2Mb of memory and TOS 1.62.
-
- p> Keith.
-
- What language are you programming in? BASIC? (Guess not, since I can't
- imagine a BASIC program which needs to know its memory location) If
- yes, which version? I know there is a variable BASEPAGE in GfA, which
- points to the basepage of the currently running program (only useful
- for compiled programs of course, otherwise it would point to the
- interpreter.)
-
- Sander SToks
- sanders@sci.kun.nl
-