Hola Balog!
BP> Hi, Rafa Velilla!
RV>> The problem is that if I don't call the old handler after my own
RV>> handler it works only one time :-? But if I call the old handler
RV>> it losses time in calculating the ascii code, and I don't need
RV>> it. ¨does someone know how to change the handler without calling
RV>> the old handler?
BP> You have to handle all the stuff about the interrupt. At the end you
BP> must notify the PIT and issue the EOI to port 0x20. If you do not do
BP> that the system thinks you did not process the keystroke so no further
BP> keystrokes will make interrupt. When you call the old handler, that
BP> does the job.
Thanks, I'll try to do it.
BP> A regular PC program generally should not take over the interrupt
BP> processing. Chaining in and calling the others is the practice avery
BP> program expect. A plenty of other programs (including disk cache
BP> managers) hook the keyboard vector and not calling it may result in
BP> data loss.
It doesn't matter if I some data is lost, I just want to be able to check
which keys are pressed and which are not pressed.
Thank you for your answer.
Un saludo
Rafa
--- FMail 1.02
---------------
* Origin: Yo mismo y mi mecanismo. 93:341/736.96 (2:341/136.96)
|