🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #35014

Re: Need help with Xbtimer

#35014
From: Allan Pratt
Date: Fri, 11 Nov 1988 19:19
14 lines
1256 bytes
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
Technical Details
Message-ID: <1227@atari.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!portal!atari!apratt
References: <26751@ucbvax.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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