Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!uupsi!sunic!dkuug!diku!bombadil From: bombadil@diku.dk (Kristian Nielsen) Newsgroups: comp.sys.amiga.programmer Subject: Re: Input handler question Keywords: handler input assembly help questions seeking Message-ID: <1991May29.132329.4690@odin.diku.dk> Date: 29 May 91 13:23:29 GMT References: <1991May28.184358.29226@sdd.hp.com> Sender: bombadil@freja.diku.dk Organization: Department of Computer Science, U of Copenhagen Lines: 16 briang@sdd.hp.com (Brian Gragg) writes: >Hi, I've been trying to have an input handler call a C subroutine and it's >just not working. The C program installs the assembly handler just fine. >I've even checked the handler by having it set the ie_Qualifier to shift so >all my keystokes get shifted to upper case, which works fine. But if I >include a jsr _myhandler in the assembly routine, the system crashes. >What am I doing wrong? You need to reload the base pointer A4 (-y on compile or __saveds / getA4()). And you need to disable stack checking (with the -v option). The latter is probably the most likely source of error, since your handler doesn't use any global varibles. - Kristian.