Want to start writing

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
User avatar
Tootles
Posts: 15
Joined: Tue Jan 15, 2008 5:23 am

Want to start writing

Post by Tootles »

Right, I actually want to start having a go at writing a simple OS. I've downloaded a document talking about how to write the simplest of things (printf and clearscreen). What other elements would I need for a simple OS?
Have a day.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

z180
Member
Member
Posts: 32
Joined: Tue Mar 04, 2008 12:32 pm

Post by z180 »

Printf() is not the best place to start with(my opinion).
I do not remember where I started my OS(sadly lost it)
but it was neither printf nor finding a name.It was some
hardware setup I have not in my head.Read tutorials or this forum
then lookup source and get your own thoughts.Dont imitate linus
starting way.Write a minimal kernel that is multiboot compatible
and sets up hardware first,.


-off topic-.
Also some people do surf on other peoples computers and I have for a long time problems accessing your virtual cage with IE and not every pc allows me installing software like browsers to view your old hardware
collection.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

I'd have to disagree. Once you get the basic working kernel (loads the high language part), printf is very important! Getting output to the monitor is a very basic debugging tool.

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

piranha wrote:I'd have to disagree. Once you get the basic working kernel (loads the high language part), printf is very important! Getting output to the monitor is a very basic debugging tool.
I don't have printf in my kernel. I just have something like:

Code: Select all

console_print(char*)
console_print_int(int)
8)
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

Alboin wrote:
piranha wrote:I'd have to disagree. Once you get the basic working kernel (loads the high language part), printf is very important! Getting output to the monitor is a very basic debugging tool.
I don't have printf in my kernel. I just have something like:

Code: Select all

console_print(char*)
console_print_int(int)
8)
:lol: I meant something that prints to the screen, although printf is useful as you can print numbers easier.

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
naiksidd_85
Member
Member
Posts: 76
Joined: Thu Jan 17, 2008 1:15 am

Post by naiksidd_85 »

try reading james molloy tutorials or brokenthorn also we have babystep tutorials in wiki.

also try reading small OS source code and gather the information.

The biggest mistake I did when i Started with the work was trying to create a boot loader it takes up a lot of time(its not that you cannot) work more on your frame work it helps a lot and once you think that you are happy with what you have you can go back and try to write a boot loader for your self.

also you need to have basic knowledge of ASM (again not manditory).
Learning a lot these days THANKS to OSdev users
Post Reply