home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3156 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: yama.mcc.ac.uk!dmu!usenet
  2. From: Timothy Eves <se1te@dmu.ac.uk>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Amiga Memory Map Needed! / ExecBase
  5. Date: Mon, 12 Feb 1996 20:28:06 +0000
  6. Organization: De Montfort University, Central Newsserver Leicester UK
  7. Message-ID: <311FA2D6.7A85@dmu.ac.uk>
  8. References: <311e89a8@lls.se>
  9. NNTP-Posting-Host: merlin.cms.dmu.ac.uk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/720)
  14.  
  15. I don't know if this will help, but:
  16.  
  17. The Amiga has what is called a Soft Architecture which means that it has
  18. no absolute memory map.  The ONLY absoulute address that any one can be
  19. sure of with the OS memory map is memory address $00000004 *points* to
  20. ExecBase.  All other OS structures and resources have pointers to them
  21. stored in the ExecBase struct. Now on machines equiped with fast ram I
  22. belive the OS moves the ExecBase structure into fast ram.
  23.  
  24. :must say I'd prefer a fixed register (mostly because the address 4 on
  25. the
  26. :Amiga isn't in the fastest address range).
  27.  
  28. That doesn't matter.  As long as you copy the pointer to exec base to a
  29. pointer in fast mem then you will get the fastest indrect jsr's you can.
  30.  
  31. :Side note: I'e written a library (that makes rather heavy use of system
  32. :resources), that _never_ references address 4. There is no need to do
  33. it.
  34.  
  35. Never? It must reference it at least once to copy the value stored
  36. there, if you're calling OS routines.
  37.  
  38. :For (most) programs, one access should be enough.
  39. True
  40.  
  41.     Tim Eves
  42.  
  43. ------------------------------------------------------------O----------------    
  44. Out of the gloom came a voice, "Smile  and  be  happy things| EMail To:
  45. could  be  worse",  it  said.  So I smiled and I was  happy,|
  46. se1te@dmu.ac.uk
  47. and  behold  things  did  get worse.                |
  48. ------------------------------------------------------------O----------------
  49.