Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!oliveb!amiga!cbmvax!jesup From: jesup@cbmvax.UUCP (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: software "exceptions" Message-ID: <7526@cbmvax.UUCP> Date: 3 Aug 89 03:56:38 GMT References: <143@ckctpa.UUCP> Reply-To: jesup@cbmvax.UUCP (Randell Jesup) Organization: Commodore Technology, West Chester, PA Lines: 25 In article <143@ckctpa.UUCP> crash@ckctpa.UUCP (Frank J. Edwards) writes: >I've been trying to use the Amiga's signalling system to cause an >"exception" (thats CBM's term, not Motorola's). The idea is not >to have to perform a Wait() for the CLOSEWINDOW gadget or to >poll the tc_SigRecvd member of the Task Control Block... ... >Compiled under Manx 3.6a with >long flag; > >#asm >_except: > moveq.l #99,d1 ; this is to let me know it worked! > move.l d1,_flag > rts >#endasm I suspect the Manx assembler is referencing flag off of A4, which of course has a random value. The Manx AS is rather nasty about changing your code without asking you to what it "knows" is right. Try large code/data or some such (I don't use manx). -- Randell Jesup, Keeper of AmigaDos, Commodore Engineering. {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup Common phrase heard at Amiga Devcon '89: "It's in there!"