Bran's kernel keyboard

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
xyjamepa

Re:Bran's kernel keyboard

Post by xyjamepa »

RTFM!!!
what dose that mean???
would you please correct my simple code
User avatar
Combuster
Member
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

Post 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)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
paulbarker

Re:Bran's kernel keyboard

Post 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.
Post Reply