home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / hardware / 13276 < prev    next >
Encoding:
Text File  |  1992-07-26  |  1.2 KB  |  27 lines

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