Page 1 of 1
OS Dev Series: Tutorial 19
Posted: Thu Apr 23, 2009 4:39 pm
by neon
Hey everyone,
OS Dev Series Tutorial 19 is now official. It can be reached here:
Tutorial 19: Keyboard Programming
It covers:
- Keyboard - Back in Time and Keyboard Layout
- Inside the keyboard
- Keyboard Protocols
- Keyboard Encoder
- Keyboard Controller
- Scan Code Sets
- Keyboard IRQ
To spice things up a little, the tutorials demo creates a (very!) basic command line interface (CLI). Because of this, it is also the first interactive demo.
Please let me know what you think of it, possible factual errors, etc. Any and all comments welcome.
Now lets all get back to our OS...
Re: OS Dev Series: Tutorial 19
Posted: Thu Apr 23, 2009 6:07 pm
by frank
All of your tutorials are very good. Lots of information, lots of code, lots of nice pictures. My only complaint is that there are no links in between tutorials, a Next and Previous link would be nice.
Re: OS Dev Series: Tutorial 19
Posted: Thu Apr 23, 2009 6:40 pm
by Firestryke31
One thing I've noticed in the two tutorials I've glanced through are several common spelling mistakes. I don't have time to point them out right now, but later I can proofread them and see what I come across...
Re: OS Dev Series: Tutorial 19
Posted: Thu Apr 23, 2009 7:26 pm
by Dex
Looks like a nice tut, i wish there was stuff like this when i started, good work.
Re: OS Dev Series: Tutorial 19
Posted: Sat Apr 25, 2009 6:06 pm
by Troy Martin
berkus wrote:Whoah! Did you test your own code?
Judging by a working screenshot, I'd say the answer is "yes."
Re: OS Dev Series: Tutorial 19
Posted: Sat Apr 25, 2009 10:18 pm
by neon
berkus wrote:Whoah! Did you test your own code?
Yep
LEDs worked fine for me when I tested it
I thank everyone for their comments so far
Re: OS Dev Series: Tutorial 19
Posted: Sat Apr 25, 2009 10:29 pm
by Troy Martin
berkus wrote:Troy Martin wrote:berkus wrote:Whoah! Did you test your own code?
Judging by a working screenshot, I'd say the answer is "yes."
I don't see the LEDs in the screenshot. Do you?
*hic8 heheh, yupppppp, ah shee them LEDsh! c'mere, kitteh kitteh kitteh... *hic* *thud!*
Re: OS Dev Series: Tutorial 19
Posted: Sat Apr 25, 2009 10:47 pm
by 01000101
excellent job!
There's a ton of in-depth info there.
Re: OS Dev Series: Tutorial 19
Posted: Sun Apr 26, 2009 3:36 am
by DeletedAccount
Hi,
Good work .
Regards
Shrek
Re: OS Dev Series: Tutorial 19
Posted: Mon Apr 27, 2009 4:21 am
by jal
Firestryke31 wrote:One thing I've noticed in the two tutorials I've glanced through are several common spelling mistakes.
I agree it's rather annoying. A simple spelling checker could help. Just copy/paste in Word (yes, I know it'll flag all the technical terms, but it will also flag the non-technical ones).
JAL
Re: OS Dev Series: Tutorial 19
Posted: Mon Apr 27, 2009 4:25 am
by jal
The page on scancodes is a bit confusing. It has a header saying "Original XT Scan Code Set", but below it it lists extended keys (starting with 0xe0), ACPI and Windows keys, which were of course not present on an XT.
EDIT: It is also not mentioned clearly that a keyboard can use different scancode sets, and that it is possible to set them. I also do not agree with "modern keyboards" using untranslated scan code set 2 instead of translated set 2. See
here for a more thorough explanation.
JAL
Re: OS Dev Series: Tutorial 19
Posted: Mon Apr 27, 2009 7:38 am
by neon
The page on scancodes is a bit confusing. It has a header saying "Original XT Scan Code Set", but below it it lists extended keys (starting with 0xe0), ACPI and Windows keys, which were of course not present on an XT.
Hm, good point. I will have to change that.
EDIT: It is also not mentioned clearly that a keyboard can use different scancode sets, and that it is possible to set them. I also do not agree with "modern keyboards" using untranslated scan code set 2 instead of translated set 2.
Actually it does describe that a keyboard can use different scan code sets, and how to set them. I will take a look at the link when I get back from work.
Regarding the spelling errors - please do not notify me of the errors. All spelling errors are planned to be fixed in the next series revision. I have been notified of it alot of times and is on my to do list