DEV Community

FelineFantasy
FelineFantasy

Posted on

I'm 13 and I built a 16-bit OS in Assembly

I'm 13 and I wrote a 16-bit OS in assembly. 🐱

It's called CatOS — real-mode bootloader, BIOS interrupts, and a cat on error.

  • Bootloader → loads kernel from floppy
  • Kernel → prints text via int 0x10
  • Panic screen → cat says "disk read error"

example cat says "disk read error"

  /\_/\  
 ( o.o ) > Disk read error!
  > ^ <  
Enter fullscreen mode Exit fullscreen mode

What's next? Not sure.

I already managed to add a basic keyboard input! Here is how the OS looks right now:

CatOS Interactive Screen
You can type here btw!

Here are my thoughts on what to build next:

  • FAT16? (To actually load files)
  • Better Keyboard Handler? (To support shift, backspace, and enter)
  • Protected mode? (Switching to 32-bit sounds fun but scary)
  • Mouse support? (Reading mouse packets via int 0x33 and drawing a custom cursor!)

Drop your ideas in the comments 👇
GitHub: FelineFantasy/CatOS

Top comments (0)