From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Keyboard Handler problem Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8hiia1$lvs$1 AT nnrp1 DOT deja DOT com> <200006061335 DOT TAA29025 AT bgl2 DOT vsnl DOT net DOT in> <8hjj65$flt$1 AT nnrp1 DOT deja DOT com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 25 X-Trace: /Kw5eCsRUb1K4hPuzrQImv1v3NSgkR7vTPoR9bfQJe+P22MeNwNZ6KUsuP6J1wRD/+qZ+zkNl5r4!qpjg3sDytV2F9kR/pa8tOJX1p1ogMAPnzTNCNhLTIcCcNqBOz+C+LcRfhp2GD7QdHTGOaMK/DPnI!SmAW X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Wed, 07 Jun 2000 19:42:43 GMT Distribution: world Date: Wed, 07 Jun 2000 19:42:43 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Tue, 06 Jun 2000 19:25:13 GMT, ryan4600 AT my-deja DOT com wrote: >Okay then my program would have lots of global variables. Is that okay? >Is it how things are done when writing keyboard handlers? Would it be >posible to see some sample source code which implements keyboard >handler? Yes I did use wrappers for my handler so I don't need IRET >instruction in my handler. Look at the Allegro sources. Yes, ISRs tend to use global variables. >> Also, lock any data that you may be using for obvious reasons. > >I am thinking about disabling all virtual memory for now. I now this >might make things slower in the real world, but is safer for learning >purposes.. Watch your program not work in Windows. -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/