home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.hardware
- Path: sparky!uunet!gatech!bloom-beacon!micro-heart-of-gold.mit.edu!uw-beaver!ubc-cs!newsserver.sfu.ca!sfu.ca!epang
- From: epang@fraser.sfu.ca (Eugene Pang)
- Subject: Re: Meaning of Task No. in Software Failures/Gurus
- Message-ID: <epang.712205099@sfu.ca>
- Sender: news@sfu.ca
- Organization: Simon Fraser University, Burnaby, B.C., Canada
- References: <1992Jul25.183220.5416@ennews.eas.asu.edu>
- Date: Mon, 27 Jul 1992 02:44:59 GMT
- Lines: 15
-
- prado@enuxhb.eas.asu.edu (Louis A. Prado) writes:
- >Is the Task number the last value of the 68000's Program Counter?
- ^^^^^
- No. It's a pointer to a Task (or Process) structure. See ExecBase->ThisTask
- If you decide to write an exception handler, the program counter is (upon
- entry): 10(sp) for address/bus errors, and 2(sp) otherwise. Get a good
- 68000 manual for more info.
-
- >If so, how can I determine the starting and ending address of each
- >program/background process I am running.
-
- Since programs can be scatter loaded (if they have more than 1 hunk) this
- isn't really simple. Also, plain tasks don't have a SegList so it's not
- possible to determine their start/end address. Oops...we're getting into
- comp.sys.amiga.programmer territory.
-