Path: utzoo!attcan!sobeco!onfcanim!zap!matrox!IRO.UMontreal.CA!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!hsdndev!wuarchive!usc!samsung!caen!uflorida!webb.psych.ufl.edu!fryman From: fryman@webb.psych.ufl.edu (Josh Fryman) Newsgroups: comp.lang.pascal Subject: Re: Interrupts on PS/2 Model 50 Message-ID: <26204@uflorida.cis.ufl.EDU> Date: 8 Jan 91 14:57:56 GMT References: <25401@adm.brl.mil> Sender: news@uflorida.cis.ufl.EDU Reply-To: fryman@webb.psych.ufl.edu (Josh Fryman) Organization: University of Florida Psychology Department Lines: 31 Richard wrote: >Well, a few comments. One: you shouldn't try to do that much in an >interrupt. The very nature of the interrupt is to process something as fast >as possible, then return control to foreground process. You are defining an >interrupt that will execute with interrupts masked off for over 0.25 seconds. >Your alarm function should just post a note somewhere that indicates that >time is up, and your keyboard polling routine should check this value and >perform the appropriate tasks. A good observation. I appreciate that. (Hadn't really thought about it that way...) I guess it was my fault for not being a little more clear in my first message. The problem isn't whether it's too long or not, the problem is: It just doesn't work. I can not (for the life of me) get the alarm interrupt (4Ah) to respond. It just doesn't seem to work with the PS/2, but a PS/2 specific book clearly states that there are NO differences between the AT and PS/2 interrupts here. Perhaps I am setting it wrong, but I don't see how that's possible. I use function 6 of interrupt 1Ah and set it accordingly. I've even reset the time to 0:00:00.00, and programmed the alarm time for 0:00:15.00 by using hex or decimal. Still, it just will not seem to "go off". Ideas? Opinions? P.S. Thanks for the mouse unit. Now I just need to incorporate it into the program. Josh (Confused...)