home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14195 < prev    next >
Encoding:
Text File  |  1992-08-19  |  2.2 KB  |  49 lines

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