home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!agate!ewylie
- From: ewylie@ocf.berkeley.edu (Elizabeth Wylie)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Acessing the TRAP word
- Date: 31 Jul 1992 06:34:15 GMT
- Organization: U.C. Berkeley Open Computing Facility
- Lines: 24
- Message-ID: <15amt7INNid4@agate.berkeley.edu>
- References: <bscott.712557800@sbphy.physics.ucsb.edu>
- NNTP-Posting-Host: tornado.berkeley.edu
- Keywords: trap
-
- In article <bscott.712557800@sbphy.physics.ucsb.edu> bscott@sbphy.physics.ucsb.edu ( Brian Scott) writes:
- >
- >Hi,
- >
- >When you overload a trap, how can you access the trap word
- >in the routine that handles the trap. I am overloading the
- >PBRead routine. I need to check whether the ASYNC bit of
- >the trap word has been set in my routine that handles PBRead.
- >Is this possible?
-
- Check the registers using macsbug or tmon on entry to your patch. I think
- D2 has the trap word. Not sure how documented this is, it might not be at all,
- but it has worked for me under 2 system versions and all macs. (Well not the
- pre-plus ones, but that hardly had anything to do with traps).
-
- E. Wylie
-
- ----
- Increasing message length so my machine will actually post it..
- .
- .
- .
- ... hate this thing.
-
-