Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!udel!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!jc58+ From: jc58+@andrew.cmu.edu (Johnny J. Chin) Newsgroups: comp.lang.pascal Subject: Re: interupt problems Message-ID: Date: 20 Sep 90 06:20:01 GMT Organization: Carnegie Mellon, Pittsburgh, PA Lines: 24 First of all why are you using INT 09h? INT 09h is generated everytime a key is pressed. I suggest that you use INT 16h and look into the keyboard buffer for the next keystroke. This way the interrupt routine doesn't have to be reenterant. If you choose to use INT 09h, then I suggest you use a flag of some sort so that the interrupt routine knows of a previous keystroke situation has occured. Simply reserve a byte somewhere in your TSR and refer to it in your routine. NOTE: The original INT 09h allows for multiple calls to itself (ie. type-ahead will cause an INT 09h to occur even if the current procedure running is the interrupt handler for INT 09h). I strongly suggest that you look into using INT 16h. Hope this piece of info. helps you in your program. __________ ___ / \ / / /_/ / /\/ _/ / / / Happy Computing ... __/. /__ / / / / / / / / / / 4730 Centre Ave. #412 ARPAnet: Johnny.J.Chin@andrew.cmu.edu / ------- / Pittsburgh, PA 15213 BITnet: jc58@andrew \__________/ (412) 268-8936 UUCP: ...!harvard!andrew.cmu.edu!jc58 Computer Dr. Disclaimer: The views expressed herein are STRICTLY my own, and not CMU's.