home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!ira.uka.de!chx400!bernina!bernina!neeri
- From: neeri@iis.ethz.ch (Matthias Neeracher)
- Subject: Re: StripAddress (was Re: Checksumming MemErr...)
- In-Reply-To: ldo@waikato.ac.nz's message of 18 Aug 92 22:19:53 GMT
- Message-ID: <NEERI.92Aug19104845@iis.ethz.ch>
- Sender: news@bernina.ethz.ch (USENET News System)
- Organization: Integrated Systems Laboratory, ETH, Zurich
- References: <1992Aug18.181714.12276@midway.uchicago.edu>
- <Bt74v9.KGF@taligent.com> <1992Aug19.101953.10190@waikato.ac.nz>
- Date: Wed, 19 Aug 1992 09:48:45 GMT
- Lines: 35
-
- In article <1992Aug19.101953.10190@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
- >In article <Bt74v9.KGF@taligent.com>, keith@taligent.com (Keith Rollin) writes:
- >> I've got a Quadra 900 with 7.0.1, Tune-Up
- >> 1.1.1, and a bunch of skanky INITs. If anyone is going to have a goofy version
- >> of StripAddress, I would. However, StripAddress is still run from ROM on my
- >> machine, and it looks like this:
- >>
- >> +0000 4080D764 BTST #$00,$1EFC
- >> +0006 4080D76A BNE.S _StripAddress+000C ; 4080D770
- >> +0008 4080D76C AND.L MaskBC,D0
- >> +000C 4080D770 RTS
- >
- >Interesting. I had a look on my IIfx, and my StripAddress entry point
- >is at 4080D76C--that is, my StripAddress routine consists of only the
- >last two of the above instructions. The preceding BTST and BNE are still
- >there, in the same place, but they're not part of StripAddress. Not
- >according to MacsBug, anyway.
- >
- >My machine is running in 24-bit mode.
-
- This looks like an optimization. In 24-bit mode, *every* address should be
- masked to 24 bit, so the trap dispatcher is set up to point to the stripping
- part. _SwapMMUMode is then probably responsible for pointing the trap back to
- 4080D764. Remember, MacsBug gets its information of what instruction belongs to
- what trap from the trap dispatch table.
-
- Another reason not to do a GetTrapAddr of a trap and JSR to the address, I
- guess.
-
- Matthias
-
- -----
- Matthias Neeracher neeri@iis.ethz.ch
- "And I won this ribbon in a Degradation Contest at the Teheran
- meeting of Junkies Anonymous" -- William Burroughs, _The Naked Lunch_
-