Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: More help with messages/handlers Message-ID: <8804252056.AA01546@cory.Berkeley.EDU> Date: 25 Apr 88 20:56:05 GMT Sender: usenet@ucbvax.BERKELEY.EDU Lines: 19 >on an old source disk), I still can't get a handler to work correctly. I Watch out for the following: (1) The handler MUST save any registers it uses (except A0,A1,D0,D1, which are scratch). The handler is called with the event in A0 and your data segment in A1. The handler must return the new event list in D0. (2) If using the small data model, you MUST load the proper address register with the proper value pointing to the programs data space to be able to use any external variables, including making any library call. (3) A pointer to an interrupt structure containing the function and data segment (I usually don't use the data segment part) is passed when adding the handler. Try this: Have your handler simply RTS... see if the system crashes