Page 1 of 1

getting user input from keyboard, help!

Posted: Sat Dec 02, 2006 3:38 pm
by R2_
I need help on the following

Im new to OS kernel development for x86, I have however coded many small kernels for the AVR microcontrollers.

Anyways I need to know how to read user input from keyboard without using BIOS and how to write my own scanf() function.

So far I got a printf() function ready.

example code is greatly appreciated


I also need a way to load my kernel into the hard drive so you don't need the floppy to run it... the boot loader im using is GRUB.

If someone can provide example code on all this and give me a link that includes memory handling, determining ram, hard drive space etc it would be good too.

Im new at kernel dev for x86.
(excuse my english)

thanks in advance

Re: getting user input from keyboard, help!

Posted: Sat Dec 02, 2006 4:58 pm
by Combuster
R2_ wrote:Anyways I need to know how to read user input from keyboard without using BIOS
http://www.osdev.org/osfaq2/index.php/G ... rd%20Input
and how to write my own scanf() function.
Read the C standard, and check out how some other C libraries accomplished this task.
I also need a way to load my kernel into the hard drive so you don't need the floppy to run it... the boot loader im using is GRUB.
Install grub on your harddisk and read the manuals
If someone can provide example code on all this and give me a link that includes memory handling, determining ram, hard drive space etc it would be good too.
have - you - searched?

Posted: Sat Dec 02, 2006 5:22 pm
by R2_
thanks