getting user input from keyboard, help!

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
R2_
Member
Member
Posts: 50
Joined: Sat Dec 02, 2006 3:27 pm

getting user input from keyboard, help!

Post 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
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: getting user input from keyboard, help!

Post 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?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
R2_
Member
Member
Posts: 50
Joined: Sat Dec 02, 2006 3:27 pm

Post by R2_ »

thanks
Post Reply