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

  1. Path: doc.ic.ac.uk!not-for-mail
  2. From: mdf@doc.ic.ac.uk (Martin Frost)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Problems With LoadSeg()
  5. Date: 8 Feb 1996 15:25:15 -0000
  6. Organization: Dept. of Computing, Imperial College, University of London, UK.
  7. Distribution: Earth
  8. Message-ID: <4fd4kr$cu7@oak68.doc.ic.ac.uk>
  9. References: <DMF0vK.LI0@gpu.utcc.utoronto.ca>
  10. Reply-To: mdf@doc.ic.ac.uk (Martin Frost)
  11. NNTP-Posting-Host: oak68.doc.ic.ac.uk
  12. X-Newsreader: mxrn 6.18-23
  13.  
  14.  
  15. In article <DMF0vK.LI0@gpu.utcc.utoronto.ca>, normb@gpu.utcc.utoronto.ca (Norman Baccari) writes:
  16. >If I LoadSeg()
  17. >a  library  and look at the resident structures rt_IdString,
  18. >on  certain  libraries  the  first  4  bytes of the IdString
  19. >contain  \0\4\251\128.
  20.  
  21. I guess this is intended as an empty string (I don't think RomTags are
  22. required to have a name), and it's just coincidence that the name follows
  23. afterward.
  24.  
  25. >      ResLib=(struct Resident *)((LONG *)BADDR(LibSeg)+2);
  26.  
  27. Don't you actually need
  28.  
  29. for(ResLib=(struct Resident *)BADDR(LibSeg);
  30.   ResLib->rt_MatchWord==0x4AFC && ResLib->rt_MatchPtr==ResLib;
  31.   (UWORD *)ResLib++);
  32.  
  33. since I don't think the RomTag is guaranteed to start at any particular place.
  34.  
  35. btw,  I'm not sure  of the exact name for rt_MatchPtr,  you'll need to check
  36. the includes.
  37.  
  38. Martin
  39.