Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!nrl-cmf!ames!ucsd!sdcsvax!ucsdhub!jack!crash!pnet01!fred From: fred@pnet01.cts.com (Fred Brooks) Newsgroups: comp.sys.atari.st Subject: Re: TRAP handler question Message-ID: <2739@crash.cts.com> Date: 28 Mar 88 00:16:17 GMT Sender: news@crash.cts.com Organization: People-Net [pnet01], El Cajon CA Lines: 9 I think you should check the stack to see if you were in super or user mode when you called the trap. If called from user mode check the usp for your function number and whatever args. Look in the superstack where the SR was saved can check the super bit (" BTST 5, (a7)") as the status is saved along with the pc with every TRAP call. UUCP: {cbosgd hplabs!hp-sdd sdcsvax nosc}!crash!pnet01!fred ARPA: crash!pnet01!fred@nosc.mil INET: fred@pnet01.cts.com