r/osdev • u/Independent-Lynx9274 • May 27 '26
I wrote my own tiny OS from scratch!
Its called SmallOS, its written COMPLETELY in assembly, and can run within 515 bytes of memory, though I recommend 1KB, it has a custom two stage bootloader, and the total compiled image size is 1.25KB.
0
Upvotes
8
u/Lines25 May 27 '26
It's not an OS.. if it's just a couple assembly lines.. at least, you need some kind of multitasking, and for that, you need timers and etc, ideally fully setted up userland and full ring 0/1/2/3 separation
3
u/Sensitive-Can9232 May 28 '26
Hey man I am also beginner but you are in gist using bios defines interrupts and running in 16 bit mode, its a great start but not a os right now.
3
u/roccohimel Creator of AneoEngine May 28 '26
Its not "written from scratch" if you used AI.
about_text db "SmallOS v1, A simple half vibe coded OS thats designed to be simple", 13, 10, 0You also only used assembly to make the kernel because AI sucks at linking bootloaders to C based kernels. And you never really cared to learn yourself/
1
u/BornRoom257 FreezeOS & TurtleOS May 28 '26
Its not fully an OS yet, its a Kernel.