Path: utzoo!attcan!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!portal!atari!apratt From: apratt@atari.UUCP (Allan Pratt) Newsgroups: comp.sys.atari.st Subject: Re: Need help with Xbtimer Message-ID: <1227@atari.UUCP> Date: 11 Nov 88 19:19:31 GMT References: <26751@ucbvax.BERKELEY.EDU> Reply-To: apratt@atari.UUCP (Allan Pratt) Organization: Atari (US) Corporation, Sunnyvale, California Lines: 14 In article <26751@ucbvax.BERKELEY.EDU> morrison@renoir.Berkeley.EDU (Scott Morrison) writes: > I am having trouble getting a timer interrupt routine to work. Xbtimer takes four arguments: the timer to set up, the control and data values for the timer, and a pointer to an interrupt handler. You are passing a pointer to a C procedure, which is not the same thing: C procedures end with RTS, while interrupt handlers end with RTE. I don't know if MWC has a function you can call which causes your procedure to end with RTE (some compilers do), but this is definitely your problem. ============================================ Opinions expressed above do not necessarily -- Allan Pratt, Atari Corp. reflect those of Atari Corp. or anyone else. ...ames!atari!apratt