Developing an OS - Newb :)

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
SirStorm25
Posts: 11
Joined: Sun Jul 20, 2008 4:06 pm

Developing an OS - Newb :)

Post by SirStorm25 »

Hi Everyone!

Im new to this place, after doing days of searching I think I've finally found a brilliant OS development
forum! The thing is, I've spent the last year learning ASM, with previous experience of Pascal (Turbo pascal +
Delphi). And I read somewhere that it is possible to develop an Operating System in Pascal and ASM.
Ive done some research on the forums already and discovered Patlock OS and found another called
AnonymOS. My question is, does anyone know any tutorials on developing an OS in Pascal and ASM with
info on adding drivers for the keyboard etc, kernel development and the adding of a simple, command based shell...
e.g:

when you type -help in the command shell it would display version info
-exit would give you the option to shut down etc.

I've read the tutorial here which was a good starting point, but, I'd like to go further!!!

Thanks for posting!
Regards

SirStorm25
:D
User avatar
Omega
Member
Member
Posts: 250
Joined: Sun May 25, 2008 2:04 am
Location: United States
Contact:

Re: Developing an OS - Newb :)

Post by Omega »

Not sure if Pascal is the best choice, can't remember why but someone told me not to use it; as if I would. I think I was merely being talked through rather than to during that discussion as I prefer C. Do it in C and you should find more guides to help. Try BonaFide OS, the OSDEV WIKI, JamesM tutorial (awesome guide), google. Once you form more specific questions come back here and we will try to help you nail it down. Good Luck.
Free energy is indeed evil for it absorbs the light.
SirStorm25
Posts: 11
Joined: Sun Jul 20, 2008 4:06 pm

Re: Developing an OS - Newb :)

Post by SirStorm25 »

How about adding onto AnonymOS?

How would I start in adding a simple command shell to it, would I use my knowledge from delphi or would it require the use of C?
010010000110100100100000010101000110100001100101011100100110010100100001
Can you read binary???

Currently Project I'm involved in:

The Free Pascal Operating System Project :D
User avatar
Zenith
Member
Member
Posts: 224
Joined: Tue Apr 10, 2007 4:42 pm

Re: Developing an OS - Newb :)

Post by Zenith »

Don't discourage him - if he wants to use Pascal, let him go right ahead. The wiki article on Pascal should help with ASM/Pascal interfacing.

But BEFORE you do anything, read Getting_Started on the wiki.

Anyway, anything you can do in C you can do in Pascal, so though some understanding of C should be helpful, it isn't really necessary for developing an OS.
"Sufficiently advanced stupidity is indistinguishable from malice."
SirStorm25
Posts: 11
Joined: Sun Jul 20, 2008 4:06 pm

Re: Developing an OS - Newb :)

Post by SirStorm25 »

Hi!

Thanks for the reply! :D
Does anyone know any example command shells in C or Pascal, just as a starting point :D , I've just tried to code one and add it to anonymOS, until, I noticed the keyboard doesn't work!!! Plus, I have no idea on how to read the line the cursor is on. So, if anyone has any example command shells in C or pascal, and a solution to the keyboard problem with AnonymOS (it does have a pre-made keyboard unit, but, It doesn't seem to be enabled :) )

Hope ya can help!
Regards

SirStorm25

EDIT:
I think i've solved the keyboard problem.
010010000110100100100000010101000110100001100101011100100110010100100001
Can you read binary???

Currently Project I'm involved in:

The Free Pascal Operating System Project :D
leledumbo
Member
Member
Posts: 103
Joined: Wed Apr 23, 2008 8:46 pm

Re: Developing an OS - Newb :)

Post by leledumbo »

Maybe you'd like to check mine. It uses FreePascal anyway. I already have a working (well, at least I can read what the user type, print it, and do something about it) command shell, check keybrd and commands unit on how I read the line.
Post Reply