Page 2 of 2
Re:Bran's kernel keyboard
Posted: Sun Aug 20, 2006 2:26 am
by xyjamepa
RTFM!!!
what dose that mean???
would you please correct my simple code
Re:Bran's kernel keyboard
Posted: Sun Aug 20, 2006 6:12 am
by Combuster
add
Code: Select all
while(!ints_raised[KB_INT]);
ints_raised[KB_INT]--;
or something like that
btw, RTFM = Read The F(censored)g Manual
(i'm in a good mood so i wont post the "Google is your friend" remark on that one)
Re:Bran's kernel keyboard
Posted: Sun Aug 20, 2006 7:16 am
by paulbarker
I'll just try to explain...
The error is not a simple mistake in the code you have written, the error is a fundamental mis-understanding of how the keyboard controller works. The whole function needs writing, and my guess is you also need code to set up the interrupt table, handle interrupts, deal with a queue for incoming keys and maybe even some kind of locking system (if you want an advanced solution).
Also, writing the code for you would not help you at all, it would just encourage you to come back next time you see a problem and so would teach you to depend on other people for code.
In short, ask yourself honestly what you want to achieve. If you want to learn, we are all here to help. If you want to be spoon fed code, I doubt you will get a positive response off many people who you aren't paying.
http://www.catb.org/~esr/faqs/smart-questions.html comes to mind.