Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!stat!vsserv!prism!gatech!hubcap!mikeoro From: mikeoro@hubcap.clemson.edu (Michael K O'Rourke) Newsgroups: comp.sys.mac.programmer Subject: jGNEfilter question Message-ID: <6901@hubcap.clemson.edu> Date: 30 Oct 89 01:21:09 GMT Organization: Clemson University, Clemson, SC Lines: 20 I am trying to create a init which will patch getnextevent using the jGNEfilter documented in the tech notes. It mentions that a pointer to the event record is in register A1. I tried some assembly in LSC to move the address to a local variable, but am having problems. The code i tried was : Eventrecord *theEvent; asm { move.l theEvent,A1 } When i check theEvent, there is NEVER a mouseDown or mouseUp. (I had a sysbeep in). I don't really know assembly, so could someone tell me what is wrong with what i am trying to do? How can i properly get to the eventrecord so that i may change or modify its contents? Michael O'Rourke