delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/13/16:03:17

From: boylesgj AT lion DOT cs DOT latrobe DOT edu DOT au (Gregary J Boyles)
Newsgroups: comp.os.msdos.djgpp
Subject: Key board handler.
Date: 13 May 1997 16:09:42 GMT
Organization: Comp.Sci & Comp.Eng, La Trobe Uni, Australia
Distribution: world
Message-ID: <5la3o6$sf8@lion.cs.latrobe.edu.au>
NNTP-Posting-Host: lion.cs.latrobe.edu.au
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

If you have coded key board, and other, handlers bofore and are
profficient at it thn you may be able to answer this question.

I have written a key board handler and it is suffering from efficiency
problems. If you press and release keys quickly the key release is not
picked up by the handler because it is still processing the press with
interrupts disabled.

I want to know if there are any hidden factors which may cause a handler
to be too slow and ways of fixing them. Not including obvious factors like
two many comparisons in and to many function calls etc in the handler
itself. More like factors related to the wrappers and reflection of real
mode ints to protected mode ints etc. If you know a way to solve them
could you detail that as well.

For example, would I be better off installing my handler as a real mode
ISR so that I avoid the reflection from real mode to protected mode. If so
how should I do this?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019