Minimal OS (was Trouble with int 13h extended commands)

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
cnlohr
Posts: 15
Joined: Tue Apr 17, 2012 3:16 pm

Minimal OS (was Trouble with int 13h extended commands)

Post by cnlohr »

Are there any good articles about how one would have a minimal OS under newer systems? I.e. purpose-build things that are less than 32kB? I mean I don't need it now, but I periodically write my own stuff like that. The only reason this was an issue this time was that my kernel was slightly too large to fit in the first cylinder on a 720 floppy.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Trouble with int 13h extended commands

Post by Combuster »

cnlohr wrote:a minimal OS (...) less than 32kB
Mind you that an OS is more than just the kernel. You could probably make yourself something like a DOS shell in that space if you know how to write simple effective code, but you can hardly get the chance to write more than the simplest drivers.

Typically, when you talk about these sizes, you're actually having an embedded application in mind, rather than an operating system.
32kB (...) too large to fit in the first cylinder on a 720 floppy
No sweat. Even a 1.4M floppy needs four tracks to store 32k/64 sectors.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply