home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!nigel.msen.com!hela.iti.org!cs.widener.edu!dsinc!bagate!cbmvax!mks
- From: mks@cbmvax.commodore.com (Michael Sinz)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Determing if an address is in chip mem.
- Message-ID: <38710@cbmvax.commodore.com>
- Date: 21 Jan 93 15:30:16 GMT
- References: <C15w6v.7zH@gabriel.keele.ac.uk>
- Reply-To: mks@cbmvax.commodore.com (Michael Sinz)
- Organization: Commodore, West Chester, PA
- Lines: 31
-
- u0g78@keele.ac.uk (Martin Steed) writes:
- >
- >Hi there,
- >
- >Is there an easy way to determine if a given data reference is in chip or
- >fast ram.
-
- Yes. It is the EXEC call TypeOfMem().
-
- So...
-
- if (TypeOfMem(address) & MEMF_CHIP)
- {
- /* We are in CHIP memory */
- }
- else
- {
- /* We are not in CHIP memory */
- }
-
- See AutoDOC for more information. TypeOfMem() returns the memory attributes
- for the memory range given. TypeOfMem() will return 0 is the address is
- not in the memory lists.
-
- /----------------------------------------------------------------------\
- | /// Michael Sinz - Senior Amiga Systems Engineer |
- | /// Operating System Development Group |
- | /// BIX: msinz UUNET: mks@cbmvax.commodore.com |
- |\\\/// |
- | \XX/ Eloquence is vehement simplicity |
- \----------------------------------------------------------------------/
-