Page 1 of 1

Kernel Keyboard Capture

Posted: Sat Jan 24, 2009 12:14 pm
by GeniusCobyWalker
I have my basic kernel below with source and Floppy.img. The next step for me is reading from the Keyboard.
I want the user be able to type then press enter for new line. I'll do files and commands after basic input.
Anyone want to explain this or have a link to a tutorial?

Heres my Basic Kernel:(At GRUB Type "Kernel 200+26", Enter, then "Boot"
http://www.mediafire.com/?ywuii4lmyrh
Screenshot:
Image

Re: Kernel Keyboard Capture

Posted: Sat Jan 24, 2009 12:52 pm
by System123
Use GOOGLE and THE WIKI everything is on the wiki. Use JamesM's tutorials for reference. and learn to use google.

Image

Re: Kernel Keyboard Capture

Posted: Sat Jan 24, 2009 1:12 pm
by GeniusCobyWalker
I used google extensively and found some but couldn't get them to work

Re: Kernel Keyboard Capture

Posted: Sat Jan 24, 2009 2:23 pm
by gzaloprgm

Re: Kernel Keyboard Capture

Posted: Sat Jan 24, 2009 2:42 pm
by Love4Boobies
Also, why are you spamming with your kernel... If you want to ask about the keyboard, just do so. I've seen you do this in numerous topics. Where are the mods? :(

Re: Kernel Keyboard Capture

Posted: Sat Jan 24, 2009 3:18 pm
by GeniusCobyWalker
I put my source because, someone might of wanted to see how basic my kernel is, or see what commands I have available.

Re: Kernel Keyboard Capture

Posted: Sat Jan 24, 2009 3:23 pm
by Love4Boobies
Do you see anyone else doing that around here? Why do you think your kernel is so special? Why would anyone want to see how basic it is? Honestly, your code stinks. Not trying to be a troll, you should research more. If someone wants to see a basic kernel, we've got tutorials for that on the wiki.

Re: Kernel Keyboard Capture

Posted: Sat Jan 24, 2009 3:58 pm
by piranha
Looking at your code, you still haven't set up the GDT, IDT, and ISR handlers. You need (well, not need, see neons post after mine) to do that before you create your keyboard code.

That info is on the wiki, and since you took from JamesM's tutorials, I'll also suggest you look there.

-JL

Re: Kernel Keyboard Capture

Posted: Sat Jan 24, 2009 4:05 pm
by neon
...You should really consider not taking source code directly from tutorials but instead learning from them and writing them yourself. You learn more that way.

Also, you don't *need* an IDT, GDT, nor ISRs for keyboard handling. Just disable IRQ1 and poll the keyboard controller for any input. Its not a nice way to do it, but its possible.

Re: Kernel Keyboard Capture

Posted: Sat Jan 24, 2009 4:58 pm
by Troy Martin
neon wrote:Also, you don't *need* an IDT, GDT, nor ISRs for keyboard handling. Just disable IRQ1 and poll the keyboard controller for any input. Its not a nice way to do it, but its possible.
That's the way I do it in my pmode assembly language kernel. Sure, it's ugly, but it works! (for a bit.)