home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / atari / st / 18661 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.0 KB

  1. From: Chuck.Grimsby@p1.f47.n282.z1.tdkt.kksys.com (Chuck Grimsby)
  2. Sender: FredGate@tdkt.kksys.com
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!umn.edu!kksys.com!tdkt!FredGate
  4. Newsgroups: comp.sys.atari.st
  5. Subject: GFA 3.07: RESERVE XX; EXEC 0,"prg"; RESERVE - help.
  6. Message-ID: <724799561.F00002@tdkt.kksys.com>
  7. Date: Fri, 18 Dec 1992 05:27:54 -0600
  8. Lines: 34
  9.  
  10. In a message of 17 Dec 92  19:33:57, Pieter Filius wrote:
  11.  
  12. PF>   Hello regular posters and occasional lurkers of this group, 
  13. PF>   For those more than vaguely interested in GFA 3.XX, better yet:
  14. PF>   heavily involved in it, 
  15. PF>   hear me cry:
  16. PF>   I simply wish to execute any specified program, 
  17. PF>   chosen via a fileselector box from my application, 
  18. PF>   whilst keeping my application resident.
  19. PF>   There. Pretty simple really. My Data-Becker manual tells me to use: 
  20. PF>   RESERVE <some amount of memory>
  21. PF>   EXEC 0,"SOME.PRG","",""
  22. PF>   RESERVE 
  23. PF>   in which the last RESERVE should reset things as they were.
  24. PF>   QUESTIONS:
  25. PF>   * How would I go about using the RESERVE command sensibly, 
  26. PF>     not knowing what to reserve for an unknown program?
  27.  
  28. First off, the GFA manual for 3.0x has the RESERVE command backwards from what
  29. it should be.  You want to use _negative_ numbers for the RESERVE statement.
  30.  
  31. Second, in the GFA interpreter for GFA 3.07, the RESERVE statement without a
  32. number to 'release' the memory area doesn't work.  It'll work fine when
  33. complied, but not while you're in the interpreter.  Exiting the GFA Basic
  34. interpreter is the _only_ way to gain back the memory you've RESERVED.
  35.  
  36. When using RESERVE to allocate memory, you don't need to know how much memory
  37. the prorgam you're going to run will take, you need to know how much memory the
  38. program you're currently running is using, and apply that to the RESERVE command
  39. as a negative number.  For example, if your program is using 200K of memory, you
  40. want to use RESERVE -20000.  The rest of the memory is then available for
  41. whatever program you want to run. 
  42.  
  43.  * Origin: FlightLine PointNet Point 1 (1:282/47.1)
  44.