home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13244 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.2 KB

  1. Path: sparky!uunet!sun-barr!ames!agate!ewylie
  2. From: ewylie@ocf.berkeley.edu (Elizabeth Wylie)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Acessing the TRAP word
  5. Date: 31 Jul 1992 06:34:15 GMT
  6. Organization: U.C. Berkeley Open Computing Facility
  7. Lines: 24
  8. Message-ID: <15amt7INNid4@agate.berkeley.edu>
  9. References: <bscott.712557800@sbphy.physics.ucsb.edu>
  10. NNTP-Posting-Host: tornado.berkeley.edu
  11. Keywords: trap
  12.  
  13. In article <bscott.712557800@sbphy.physics.ucsb.edu> bscott@sbphy.physics.ucsb.edu ( Brian Scott) writes:
  14. >
  15. >Hi,
  16. >
  17. >When you overload a trap, how can you access the trap word
  18. >in the routine that handles the trap.  I am overloading the 
  19. >PBRead routine.  I need to check whether the ASYNC bit of
  20. >the trap word has been set in my routine that handles PBRead.
  21. >Is this possible?
  22.  
  23. Check the registers using macsbug or tmon on entry to your patch.  I think
  24. D2 has the trap word.  Not sure how documented this is, it might not be at all,
  25. but it has worked for me under 2 system versions and all macs.  (Well not the
  26. pre-plus ones, but that hardly had anything to do with traps).
  27.  
  28. E. Wylie
  29.  
  30. ----
  31. Increasing message length so my machine will actually post it..
  32. .
  33. .
  34. .
  35. ... hate this thing.
  36.  
  37.