Make a command line

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.
thomasloven
Member
Member
Posts: 89
Joined: Tue Feb 26, 2008 10:47 am
Location: Sweden

Post by thomasloven »

Bran's tutorial has a chapter on the keyboard.

http://www.osdever.net/bkerndev/index.php

I even think there's some strcmp in there if you need it.
Danand
Posts: 17
Joined: Mon Mar 17, 2008 4:56 pm
Contact:

Post by Danand »

I will make my own code when i have learn! I'm just testing things, i holding on keyboard now, just some small problems..

Edit:
I have some errors, any one who can find out whats wrong?
kb.o: In function `keyboard_handler':
kb.c:(.text+0xe): undefined reference to `inportb'
kb.c:(.text+0x2f): undefined reference to `putch'
kb.o: In function `keyboard_install':
kb.c:(.text+0x4b): undefined reference to `irq_install_handler'
make: *** [link] Error 1
Sorry my english, i'm from norway.. :P

I write my own os now, DanOS. Website coming soon!
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post by xyzzy »

It helps not to just copy and paste the code, you do actually need to change it to work with your other code.
User avatar
lukem95
Member
Member
Posts: 536
Joined: Fri Aug 03, 2007 6:03 am
Location: Cambridge, UK

Post by lukem95 »

i REALLY don't think your ready for osdev :(

that means you havn't written those functions, or theyre not included in the linked files. Learn a bit about GCC please.
~ Lukem95 [ Cake ]
Release: 0.08b
Image
User avatar
nekros
Member
Member
Posts: 391
Joined: Wed Mar 05, 2008 9:10 pm
Contact:

Post by nekros »

you either don't have those functions or you are not linking the file with those functions. I'm thinking you know absolute **** about programming, if you don't get what that means then why the hell are you trying to write an OS?

Sorry if I was harsh, you shouldn't expect people to just tell you exactly what to do, try writing your own code based on an algorithm that someone describes :wink:
Working On:Bootloader, RWFS Image Program
Leviathan: http://leviathanv.googlecode.com
Kernel:Working on Design Doc
Post Reply