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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!psinntp!norton!ely
  3. From: ely@norton.com (Dave Ely)
  4. Subject: Re: MacsBug symbols from assembler code?
  5. Message-ID: <1992Aug22.024724.9638@norton.com>
  6. Organization: Symantec / Peter Norton
  7. References: <1992Aug20.155733.6869@daimi.aau.dk>
  8. Date: Sat, 22 Aug 1992 02:47:24 GMT
  9. Lines: 31
  10.  
  11. datpete@daimi.aau.dk (Peter Andersen) writes:
  12.  
  13.  > How do I make a (global) symbol known to MacsBug? I have tried
  14.  > adding 
  15.  > 
  16.  >    DC.B $8C, 'MySymbol' 
  17.  >    DC.W $0000 
  18.  > 
  19.  > after the last RTS in the code of the procedure, as described in the
  20.  > MacsBug manual (Appendix G, p.118, MacsBug version 6.1 manual), but
  21.  > the symbol is not known to MacsBug, when I try to debug the code. 
  22.  > 
  23.  > I am using MPW 3.2.2, System 7.0.1 (US), MacsBug version 6.2b2 on a
  24.  > Macintosh IIx.
  25.  
  26. You need something like this:
  27.  
  28.    DC.B $8C, 'MySymbol'
  29.    dc.b $0
  30.    DC.W $0000
  31.  
  32. The MacsBug symbol has to be padded to an even word length so that the
  33. data length offset (DC.W $0000) is on an even address. There is a
  34. macro which comes with the samples for for the MPW assembler which
  35. shows how to create MacsBug strings. I think it's called DbgStr.
  36.  
  37. -- 
  38.  ______________________________________________________________
  39.     Dave Ely          \   Internet:  david_ely@qm.norton.com
  40.     Symantec Corp.     \             ely@norton.com
  41.     Peter Norton Group  \ AppleLink: Ely.D
  42.