Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!nbires!hao!hplabs!pyramid!amiga!skipper!cbmvax!higgin From: higgin@cbmvax.UUCP Newsgroups: net.micro.amiga Subject: Re: Manx C and interrupt handlers Message-ID: <544@cbmvax.cbmvax.cbm.UUCP> Date: Sat, 19-Jul-86 17:21:28 EDT Article-I.D.: cbmvax.544 Posted: Sat Jul 19 17:21:28 1986 Date-Received: Mon, 21-Jul-86 03:10:24 EDT References: <431@vger.UUCP> Reply-To: higgin@cbmvax.UUCP (Paul Higginbottom) Organization: Commodore Technology, West Chester, PA Lines: 28 Keywords: Manx, interrupts In article <431@vger.UUCP> waterfal@vger.UUCP (Douglas Waterfall) writes: >I am having a tough time trying to get the input device >to work properly. The C code in the ROM Manual v1.1 will >not work properly under Manx without modifications. I was >able to get it to work properly by saving all the registers >in the assembly language piece before calling the handler. Do you mean the code on 1-55 and 1-56 in RKM vol 1? If so, I have managed to get this to work by having my handler in assembler, getting register a4 from a1 (is_Data) as is explained in the Manx docs. >Now >the only problem is making ROM calls from within the interrupt >handler. The original code has a Forbid() and Permit() placed >within the handler, this invariably causes the dreaded red box >to appear. Has anyone been able to make the code work properly? > >Thank >Douglas Waterfall I don't know what code you're referring to, because I haven't seen any code which has Forbid()/Permit() in it, but I am calling the Signal() routine from my handler without problems. Hope this helps, Paul. Disclaimer: Opinions are my own and I do not work for Commodore.