Bona Fide OS Development
http://forums.osdever.net/

The Keyboard
http://forums.osdever.net/viewtopic.php?f=4&t=49
Page 1 of 2

Author:  Michael [ Sat Oct 17, 2009 6:06 pm ]
Post subject:  The Keyboard

First of all, I would to apologise for my absence - I have been busy with other stuff (and still technically am). Anyway, down to business:

How do I recieve keyboard input using C? Please remember that I am not using any standard includes (I have to code these myself). I followed the examples in bkerndev, but it wouldn't compile.

From what I understand I need to setup the IDT, ISRs and IRQs before I can take input? Does anyone have any tutorials/help please?

Author:  ctimko [ Sat Oct 17, 2009 8:05 pm ]
Post subject:  Re: The Keyboard

You need to first setup the GDT, then the IDT, and in those you will setup your ISRs and IRQs. After that, you are going to have to attach the keyboard to an IRQ. I don't exactly remember what the suggested is, but for now I have attached mine to IRQ1. If you want, I can work up a tutorial for the keyboard stuff for everyone and post it. It will take me a few days since I have other things, but it would probably be better than me just posting code here and you don't learn. <(o.o)>

Author:  Michael [ Sat Oct 17, 2009 9:18 pm ]
Post subject:  Re: The Keyboard

I have a GDT setup in ASM. A tutorial would be handy, Google is not being friendly.

Author:  Kieran [ Sun Oct 18, 2009 10:58 am ]
Post subject:  Re: The Keyboard

Michael, start loking at OSDev.org, its a great site and until we have the information here, that will prob be your main resource for os devving.

Author:  Michael [ Sun Oct 18, 2009 11:11 am ]
Post subject:  Re: The Keyboard

OSDev.org is where I pulled together what I have so far :)

Author:  Kieran [ Sun Oct 18, 2009 11:13 am ]
Post subject:  Re: The Keyboard

ok mate, well Im sure you have all of the neede information already, keep trying mate and it will all come together :)

Author:  Michael [ Sun Oct 18, 2009 11:14 am ]
Post subject:  Re: The Keyboard

I think OSDev lacks IDT tutorials :P So does everywhere, tbh.

Author:  ctimko [ Sun Oct 18, 2009 12:26 pm ]
Post subject:  Re: The Keyboard

Check out this tutorial. This will help you with the IDT, IRQ, and ISRs

http://jamesmolloy.co.uk/tutorial_html/index.html

This is what I used to help me start my kernel out in C and then I converted it to C++.

Charles

Author:  Michael [ Sun Oct 18, 2009 12:27 pm ]
Post subject:  Re: The Keyboard

Thanks, I'll take a look.

Author:  Kieran [ Mon Oct 19, 2009 7:33 am ]
Post subject:  Re: The Keyboard

Mike mate, ill be on msn later, give me a buzz if you get stuck with the IDT :D

Page 1 of 2 All times are UTC - 6 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/