Kernel Keyboard Capture

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.
Locked
User avatar
GeniusCobyWalker
Member
Member
Posts: 65
Joined: Mon Jan 12, 2009 4:17 pm

Kernel Keyboard Capture

Post by GeniusCobyWalker »

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?

Heres my Basic Kernel:(At GRUB Type "Kernel 200+26", Enter, then "Boot"
http://www.mediafire.com/?ywuii4lmyrh
Screenshot:
Image
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
System123
Member
Member
Posts: 196
Joined: Mon Jul 07, 2008 1:25 am

Re: Kernel Keyboard Capture

Post by System123 »

Use GOOGLE and THE WIKI everything is on the wiki. Use JamesM's tutorials for reference. and learn to use google.

Image
Gizmic OS
Currently - Busy with FAT12 driver and VFS
User avatar
GeniusCobyWalker
Member
Member
Posts: 65
Joined: Mon Jan 12, 2009 4:17 pm

Re: Kernel Keyboard Capture

Post by GeniusCobyWalker »

I used google extensively and found some but couldn't get them to work
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
User avatar
gzaloprgm
Member
Member
Posts: 141
Joined: Sun Sep 23, 2007 4:53 pm
Location: Buenos Aires, Argentina
Contact:

Re: Kernel Keyboard Capture

Post by gzaloprgm »

Visit https://gzalo.com : my web site with electronic circuits, articles, schematics, pcb, calculators, and other things related to electronics.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Kernel Keyboard Capture

Post by Love4Boobies »

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 ]
User avatar
GeniusCobyWalker
Member
Member
Posts: 65
Joined: Mon Jan 12, 2009 4:17 pm

Re: Kernel Keyboard Capture

Post by GeniusCobyWalker »

I put my source because, someone might of wanted to see how basic my kernel is, or see what commands I have available.
Full Knowledge in:
GML, Ti-Basic, Zilog Z80 Assembly, SX28 Assembly and Blender
Experience in:
C++,OpenGl,NDS C++,Dark Basic,Dark Basic Pro,Dark Gdk and PSP Coding
Using:
Ubuntu ,GEdit ,NASM ,GCC ,LD ,Bochs
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Kernel Keyboard Capture

Post by Love4Boobies »

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 ]
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Re: Kernel Keyboard Capture

Post by piranha »

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.
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: Kernel Keyboard Capture

Post by neon »

...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();}
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: Kernel Keyboard Capture

Post by Troy Martin »

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.)
Image
Image
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.
I wish I could add more tex
Locked