Article View: comp.sys.atari.st
Article #31528Re: TRAP handler question
From: Fred Brooks
Date: Mon, 28 Mar 1988 00:16
Date: Mon, 28 Mar 1988 00:16
9 lines
835 bytes
835 bytes
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
Technical Details
Message-ID:
<2739@crash.cts.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!nrl-cmf!ames!ucsd!sdcsvax!ucsdhub!jack!crash!pnet01!fredShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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