home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!psinntp!norton!ely
- From: ely@norton.com (Dave Ely)
- Subject: Re: MacsBug symbols from assembler code?
- Message-ID: <1992Aug22.024724.9638@norton.com>
- Organization: Symantec / Peter Norton
- References: <1992Aug20.155733.6869@daimi.aau.dk>
- Date: Sat, 22 Aug 1992 02:47:24 GMT
- Lines: 31
-
- datpete@daimi.aau.dk (Peter Andersen) writes:
-
- > How do I make a (global) symbol known to MacsBug? I have tried
- > adding
- >
- > DC.B $8C, 'MySymbol'
- > DC.W $0000
- >
- > after the last RTS in the code of the procedure, as described in the
- > MacsBug manual (Appendix G, p.118, MacsBug version 6.1 manual), but
- > the symbol is not known to MacsBug, when I try to debug the code.
- >
- > I am using MPW 3.2.2, System 7.0.1 (US), MacsBug version 6.2b2 on a
- > Macintosh IIx.
-
- You need something like this:
-
- DC.B $8C, 'MySymbol'
- dc.b $0
- DC.W $0000
-
- The MacsBug symbol has to be padded to an even word length so that the
- data length offset (DC.W $0000) is on an even address. There is a
- macro which comes with the samples for for the MPW assembler which
- shows how to create MacsBug strings. I think it's called DbgStr.
-
- --
- ______________________________________________________________
- Dave Ely \ Internet: david_ely@qm.norton.com
- Symantec Corp. \ ely@norton.com
- Peter Norton Group \ AppleLink: Ely.D
-