home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17233 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.5 KB

  1. Path: sparky!uunet!cbmvax!jesup
  2. From: jesup@cbmvax.commodore.com (Randell Jesup)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Base address of custom chips (2nd try)
  5. Message-ID: <37761@cbmvax.commodore.com>
  6. Date: 10 Dec 92 01:26:57 GMT
  7. References: <Byzp81.GMr@hermes.hrz.uni-bielefeld.de>
  8. Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
  9. Organization: Commodore, West Chester, PA
  10. Lines: 24
  11.  
  12. iikoch@techfak.uni-bielefeld.de (Ingolf Koch) writes:
  13. >Hello,
  14. >is there a safe way to determine the base address of the custom chip reg.s
  15. >and the CIAs? Yes, I know: extern struct ...
  16. >
  17. >But will these programs run on other (later) models of the amiga? This method
  18. >is not much better than to explicitly set the value to 0xdff000 (since this
  19. >is the way the compiler handles the `extern struct' call).
  20. >
  21. >Commodore warns not to use any other absolute address than 4. But I cant find
  22. >any structure (like ExecBase, GfxBase, ...) containing pointers to the
  23. >chip reg.s.
  24.  
  25.     This is an unfortunate but unchangable exception to the "no absolute
  26. addresses other than $4" rule.  In the rush to get 1.0 out, they didn't think
  27. of that.  Maybe it could have been corrected in 1.1 or even 1.2, but after
  28. that it was too late.  The best way to get around it now will be RTG.
  29.  
  30. -- 
  31. To be or not to be = 0xff
  32. -
  33. Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
  34. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com  BIX: rjesup  
  35. Disclaimer: Nothing I say is anything other than my personal opinion.
  36.