home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / atari / st / tech / 5669 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.6 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!hal.com!olivea!spool.mu.edu!wupost!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!metro!socs.uts.edu.au!kralizec!ixgate!michael.smith
  2. From: michael.smith@f842.n800.z3.fido.zeta.org.au (michael smith)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: Re: getmpb
  5. Message-ID: <b010d0aa@Kralizec.fido.zeta.org.au>
  6. Date: 9 Nov 92 07:37:02 GMT
  7. Organization: Fidonet. Gate admin is fido@socs.uts.edu.au
  8. Lines: 31
  9.  
  10. Original to: pcxkrm@unicorn.nott.ac.uk
  11. In a message of <02 Nov 92 18:12:40>, pcxkrm@unicorn.nott.ac.uk (3:713/602)
  12. writes:
  13.  
  14.  p> Hi,
  15.  
  16. G'day!
  17.  
  18.  p> As a person who has spent the last ten years programming almost solely
  19.  p> in BASIC, the ins and outs of memory management are fairly new to me.
  20.  p> I'm currently trying to write a program which needs to know where it is
  21.  p> in memory. My GEMDOS information tells me that the 'C' call getmpb
  22.  p> should do this - but it seems to return only the top of system memory or
  23.  p> something - it gives the same thing every time with no pointer to a
  24. second
  25.  p> block.
  26.  p> Am I being very thick or is there some other way to find out my
  27.  p> program's basepage? I'm running an STe with 2Mb of memory and TOS 1.62.
  28.  
  29. Why do you want to find the basepage??  If you are looking for paramters,
  30. that's the wrong way to do it...
  31.  
  32. Your library's startup code should define a variable called _baseptr (or
  33. something similar) that points to it anyway.
  34.  
  35.  p> Keith.
  36.  
  37. \`miff`                                                       /|\
  38.  
  39. --- ScanMail 0.68 X0501
  40.  * Origin: That Which Is Not, ST in SA. 61-8-232-5722 (3:800/842)
  41.