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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!keith@taligent.com
  3. From: keith@taligent.com (Keith Rollin)
  4. Subject: Re: Checksumming MemErr global variable (Tech Note 7) problem
  5. Message-ID: <Bt74v9.KGF@taligent.com>
  6. Sender: usenet@taligent.com (More Bytes Than You Can Read)
  7. Organization: Taligent
  8. References: <1992Aug18.181714.12276@midway.uchicago.edu>
  9. Date: Tue, 18 Aug 1992 20:28:20 GMT
  10. Lines: 34
  11.  
  12. In article <1992Aug18.181714.12276@midway.uchicago.edu>, chh9@quads.uchicago.edu
  13. (Conrad Halton Halling) writes:
  14. > Tech Note 7 says:
  15. > "If you are having strange, memory-related problems, one thing that
  16. > you can do to help find them is to checksum on MemErr (the low memory
  17. > global word at $220).  In MacsBug, type "SS 220 221"....  When MemErr
  18. > changes, the debugger will appear, and you can check your code to make
  19. > sure that you are checking MemErr.  If not, you might have found a problem
  20. > that could cause your program to crash!"
  21. > I tried this, but apparently StripAddress() is using MemErr because it
  22. > is stuffing strange numbers into this global variable, so this technique
  23. > doesn't seem to work any more.  Does anyone know why StripAddress()
  24. > is using MemErr??
  25.  
  26. What StripAddress are you looking at? I've got a Quadra 900 with 7.0.1, Tune-Up
  27. 1.1.1, and a bunch of skanky INITs. If anyone is going to have a goofy version
  28. of StripAddress, I would. However, StripAddress is still run from ROM on my
  29. machine, and it looks like this:
  30.  
  31.      +0000  4080D764   BTST       #$00,$1EFC
  32.      +0006  4080D76A   BNE.S      _StripAddress+000C         ; 4080D770
  33.      +0008  4080D76C   AND.L      MaskBC,D0
  34.      +000C  4080D770   RTS
  35.  
  36. No muss, no fuss. An no accesses to MemErr.
  37.  
  38. --
  39. Keith Rollin
  40. Phantom Programmer
  41. Taligent, Inc.
  42.  
  43.