|
10 years ago | |
---|---|---|
00-environment | 10 years ago | |
01-bootsector-barebones | 10 years ago | |
02-bootsector-print | 10 years ago | |
03-bootsector-memory | 10 years ago | |
04-bootsector-stack | 10 years ago | |
05-bootsector-functions-strings | 10 years ago | |
.gitignore | 10 years ago | |
README.md | 10 years ago |
How to create an OS from scratch!
I have always wanted to learn how to make an OS from scratch. In college I was taught how to implement advanced features (pagination, semaphores, memory management, etc) but:
Inspired by this document and the OSDev wiki, I'll try to make short step-by-step READMEs and code samples for anybody to follow. Honestly, this tutorial is basically the first document but split into smaller pieces and without the theory.
Start with the first folder and go down in order. They build on previous code, so if you jump right to folder 08, you may find a lot of stuff which is not related to what folder 08 is about.
Read each README first. Especially the first line, which details the concepts you should be familiar with before reading the code.
Read the README. It is very concise. The only theory is the required to understand the code and there are tips on what to look at when you open the code file(s)
Look at the code examples. Some times you may be able to write them yourself just from the hints on the README.
Experiment with them and try to break things. Try to change pointers and registers and see what happens. You know, the usual.
TL;DR: First read the README on each folder, then decide if you will implement it yourself or just read the provided code files.
I'm still learning this. For the moment, please restrict your contributions to fixing possible bugs or improving existing documents. I'm not yet ready to accept enhancements.