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