Small CLI kernel?

If you are new to OS Development, plan on spending some time here first before going into the other forums.

Moderator:Moderators

Post Reply
Blasterman
Posts:4
Joined:Sat Nov 24, 2007 6:23 pm
Location:In front of my computer, duh.
Contact:
Small CLI kernel?

Post by Blasterman » Sat Nov 24, 2007 6:28 pm

How can I implement a small CLI kernel for my OS? I've looked everywhere, but I haven't found anything...
Image
Image

User avatar
Mike
Site Admin
Posts:465
Joined:Sat Oct 20, 2007 7:58 pm
Contact:

Post by Mike » Sun Nov 25, 2007 5:57 am

Hello,

That is not too hard, but does require alot of things already set up.

At the minimum, I personally recommend having a (at least minimum) keyboard and vga driver. With this, you will also need a way to handle the keyboards hardware interrupt (IRQ 9) to know when to fetch data from the keyboards input buffer.

This means that you will also need an IDT, and hardware interrupts mapped via 8259A PIC controllers.

The basic idea is -- whenever you receive an IRQ 9, get the value from the keyboard controllers input buffer. Convert the scancode into an ASCII value, and render it through the vga driver.

This is all abstract though, and I am sure sounds much easier then it really is. It should give an idea at what to look for though.

I hope this helps, and good luck :)
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com

Post Reply