Path: 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 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