Article View: comp.sys.atari.st
Article #31643Re: TRAP handler question
From: Barnacle Wes
Date: Tue, 29 Mar 1988 15:59
Date: Tue, 29 Mar 1988 15:59
16 lines
1185 bytes
1185 bytes
In article <2739@crash.cts.com>, fred@pnet01.cts.com (Fred Brooks) writes:
> I think you should check the stack to see if you were in super or user mode
> when you called the trap.
You're close here, Fred. A trap always puts you in Super mode, so you
will have the status register on the stack. Since you're in Super
mode, you're automagically using the ssp (as a7 or sp). That's why
the function code is at 6(sp). I don't know why the cmpi is changing
the data it looks at!
Wes Peters
--
/\ - "Against Stupidity, - {backbones}!
/\/\ . /\ - The Gods Themselves - utah-cs!utah-gr!
/ \/ \/\/ \ - Contend in Vain." - uplherc!sp7040!
/ U i n T e c h \ - Schiller - obie!wes
Technical Details
Message-ID:
<101@obie.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!im4u!ut-sally!utah-cs!utah-gr!uplherc!sp7040!obie!wesReferences:
<2739@crash.cts.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-tis!ames!mailrus!tut.cis.ohio-state.edu!im4u!ut-sally!utah-cs!utah-gr!uplherc!sp7040!obie!wes From: wes@obie.UUCP (Barnacle Wes) Newsgroups: comp.sys.atari.st Subject: Re: TRAP handler question Message-ID: <101@obie.UUCP> Date: 29 Mar 88 15:59:35 GMT References: <2739@crash.cts.com> Organization: the Well of Souls Lines: 15 Summary: Trap always *puts* you in Super mode