Page 2 of 2

Posted: Fri Mar 28, 2008 4:54 am
by thomasloven
Bran's tutorial has a chapter on the keyboard.

http://www.osdever.net/bkerndev/index.php

I even think there's some strcmp in there if you need it.

Posted: Fri Mar 28, 2008 6:18 am
by Danand
I will make my own code when i have learn! I'm just testing things, i holding on keyboard now, just some small problems..

Edit:
I have some errors, any one who can find out whats wrong?
kb.o: In function `keyboard_handler':
kb.c:(.text+0xe): undefined reference to `inportb'
kb.c:(.text+0x2f): undefined reference to `putch'
kb.o: In function `keyboard_install':
kb.c:(.text+0x4b): undefined reference to `irq_install_handler'
make: *** [link] Error 1

Posted: Fri Mar 28, 2008 6:37 am
by xyzzy
It helps not to just copy and paste the code, you do actually need to change it to work with your other code.

Posted: Fri Mar 28, 2008 6:38 am
by lukem95
i REALLY don't think your ready for osdev :(

that means you havn't written those functions, or theyre not included in the linked files. Learn a bit about GCC please.

Posted: Fri Mar 28, 2008 6:44 am
by nekros
you either don't have those functions or you are not linking the file with those functions. I'm thinking you know absolute **** about programming, if you don't get what that means then why the hell are you trying to write an OS?

Sorry if I was harsh, you shouldn't expect people to just tell you exactly what to do, try writing your own code based on an algorithm that someone describes :wink: