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.
I have my basic kernel below with source and Floppy.img. The next step for me is reading from the Keyboard.
I want the user be able to type then press enter for new line. I'll do files and commands after basic input.
Anyone want to explain this or have a link to a tutorial?
Also, why are you spamming with your kernel... If you want to ask about the keyboard, just do so. I've seen you do this in numerous topics. Where are the mods?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Do you see anyone else doing that around here? Why do you think your kernel is so special? Why would anyone want to see how basic it is? Honestly, your code stinks. Not trying to be a troll, you should research more. If someone wants to see a basic kernel, we've got tutorials for that on the wiki.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Looking at your code, you still haven't set up the GDT, IDT, and ISR handlers. You need (well, not need, see neons post after mine) to do that before you create your keyboard code.
That info is on the wiki, and since you took from JamesM's tutorials, I'll also suggest you look there.
-JL
Last edited by piranha on Sat Jan 24, 2009 4:47 pm, edited 1 time in total.
...You should really consider not taking source code directly from tutorials but instead learning from them and writing them yourself. You learn more that way.
Also, you don't *need* an IDT, GDT, nor ISRs for keyboard handling. Just disable IRQ1 and poll the keyboard controller for any input. Its not a nice way to do it, but its possible.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
neon wrote:Also, you don't *need* an IDT, GDT, nor ISRs for keyboard handling. Just disable IRQ1 and poll the keyboard controller for any input. Its not a nice way to do it, but its possible.
That's the way I do it in my pmode assembly language kernel. Sure, it's ugly, but it works! (for a bit.)
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.