Beginning your code...

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
DTShadowWolf

Beginning your code...

Post by DTShadowWolf »

Ok, I definitely understand just about ever component necessary for Operating System development, but the problem I'm having is getting started with coding. I have a bootstrapper/loader that will load a flat-binary kernel. I'm using the following:
NASM for Assembly (x86)
DJGPP for C++
Vim for Text / Documents
I'm using Vim for text documents because i write my text on my laptop / fileserver due to the crappiness of Notepad etc.. in Windows. Otherwise I do use Windows for everything.

Any advice for starting up kernel coding & what-not so that I can get going ( memory management, etc.. )

I know a lot of it is subjective, but I've looked at many kernel examples & what-not but they aren't really as concise with comments as I'd like.
K.J.

Re:Beginning your code...

Post by K.J. »

Well, I think that you should have at least a printf/kprintf type function in your kernel as that will allow you to know just what's happening.

K.J.
f2

Re:Beginning your code...

Post by f2 »

Yes, and I have a cleverly written function to do this, but it does a BIOS call and if you are programming your OS in PMode then you can't use it. But, if you are programming in Real Mode, then just say the word and I'll give you the code. Otherwise, you're going to just have to write directly to the video memory. That's not too hard in itself. Just keep a var that holds the cursor position and there are some other things that you need to do.
Post Reply