Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!uokmax!munnari.oz.au!brolga!uqcspe!cs.uq.oz.au!warwick From: warwick@cs.uq.oz.au (Warwick Allison) Newsgroups: comp.sys.atari.st Subject: Re: Help with timerA Message-ID: <1147@uqcspe.cs.uq.oz.au> Date: 3 May 91 05:41:28 GMT References: Sender: news@cs.uq.oz.au Reply-To: warwick@cs.uq.oz.au Distribution: comp.sys.atari.st Lines: 31 >Does anybody out there know why when I compile the following program >(with HiSoft's GenST assembler) and run it on my STE the system crashes? : >TimerA_int > rte > even : It's a long time since I encapsulated TimerA use in a module :-), but I think you need to clear an interrupt-pending bit on the before you return from the exception. Check out what TimerB, C and D do, check Internals (though from memory there was a bug in that part :-( ), or grab play.arc from atari.archive and look for the interrupt code that writes to the Yamaha chip. You're an assembler programmer - you'll enjoy it. :-) If you get stuck, mail back, and I'll check my modules (at home). It isn't very difficult, just tedious to hold your tongue in just the right way. Warwick. PS. As I said, it's been a while - I may be completely off track. -- _-_|\ warwick@cs.uq.oz.au / * <-- Computer Science Department, \_.-._/ University of Queensland, v Brisbane, AUSTRALIA.