RTFM!!!
what dose that mean???
would you please correct my simple code
Bran's kernel keyboard
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re:Bran's kernel keyboard
add
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)
Code: Select all
while(!ints_raised[KB_INT]);
ints_raised[KB_INT]--;
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
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.
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.