Page 1 of 1

OS developer - beginner needs help

Posted: Thu Mar 29, 2001 12:00 am
by xyz
I am a programmer. I used to use VB,C++ etc.
But I always, wanted to write an OS. So I learnt
C. I also got myself a book on assembly language
for the 8086.

Now I am comfortable with assembly language & C.
I collected a lot of tutorials & examples.
many of the examples use protected mode, A20 line...etc.

First I want to write a simple OS in real mode then
move on to using the advanced features of the
286,386....
Can you tell me how to go about it.

for example, a list of things i should have a knowledge of
before i start out( so that I don't have problems during the
development ) [ **just for the simple REAL MODE OS** ].
and where to get it.

Another question,
How do we pass control to kernel from the bootsector,
if we can't set the CS & IP registers. please help me out.?

RE:OS developer - beginner needs help

Posted: Thu Mar 29, 2001 12:00 am
by Alexei Frounze
>On 2001-03-29 02:59:39, xyz wrote:
>Now I am comfortable with assembly language & C.
...
>How do we pass control to kernel from the bootsector,
>if we can't set the CS & IP registers. please help me out.?

These 2 sentenses are somewhat contradictory in th sense that your feeling about being comfortable with ASM is unreasonable if you can't answer such a simple question yourself.

>First I want to write a simple OS in real mode then
>move on to using the advanced features of the
>286,386....
>Can you tell me how to go about it.

Step by Step.... :)

>for example, a list of things i should have a knowledge of
>before i start out( so that I don't have problems during the
>development ) [ **just for the simple REAL MODE OS** ].
>and where to get it.
>

You definetely have to know about OS theory and the ideas behind the term of an OS before you start coding.
Otherwise you do something arbitrary, e.g. what you can do at the moment (like command processor or a few simple drivers :) while the OS is not being done at all.
Read on the subj more if you don't want to end up with something like "hello world period". :)

Good Luck