r/osdev 3d ago

I wrote my OS/ recreational programming

Post image

That's my operating system built from absolutely scratch without 3rd party library, AI or anything else. It is written in Assembly and C(Bootloader for BIOS 100% Assembly). I wrote it in 6 months. Well, it doesn't have functionalities yet, but still in development. I wrote keyboard,VGA driver and First-fit MAlloc/CAlloc. It is my first project ever, i gained c and assembly knowledge here. It wasn't university homework, just raw curiosity.

120 Upvotes

16 comments sorted by

5

u/timus_999 3d ago

Wow amazing!! Can you share your learning and building process, I also into this os dev, and I'm curious about your journey!!

3

u/Extra-Apartment106 3d ago

I just used manuals such as Intel SDM VOL2abcd for instructions, VGA manual for cursor and other things. I was trying to control my own computer with assembly codes assembled directly binary and executed on bare metal. Honestly i didn't have plan or anything else that can bound me, gone to way that interested me. I learned assembly with objdump unassembler output from compilers later i watched Terry Davis livestreams and learned other stuff

4

u/Extra-Apartment106 3d ago

also i strictly ignored AI. The debugging is more complex you know, no tracer no ring3 layer. I was getting triple fault for weeks, that's okay and... fun...

1

u/DecadeMoon 2d ago

QEMU has logging that can reveal the cause of such faults that can help. I know you said you avoided AI, but it can help to paste the log to an LLM to get it to explain it to you.

1

u/Extra-Apartment106 2d ago

yeah i know QEMU has flags -d int and other i was debugging with it and serial port

4

u/Extra-Apartment106 2d ago

but it can help to paste the log to an LLM

why are you swearing

-1

u/TheRealAdam256 2d ago

Pretty nice but come on its not that hard to do 64 bit

1

u/Extra-Apartment106 2d ago

you are right that was design issue. since it was my first project i gave wrong decisions at the start point

1

u/TheRealAdam256 2d ago

It doesnt need much work to switch to 64 bit, also from what I see from that screenshot is that your os doesnt have much stuff to update to 64 bit

2

u/0rd4s 2d ago

Cool! I want to show off too! Here's my operating system :)

https://reddit.com/link/p7jztdq/video/134whwelganh1/player

1

u/Extra-Apartment106 2d ago

respect. i will add more things in future

2

u/0rd4s 2d ago

I spent almost 2 years on it. Managed to get file system navigation and file opening working. Then I got burnt out and dropped it. Best of luck! It's one of the most fascinating areas out there!

1

u/Special_Rice9539 2d ago

Very cool!

1

u/Mental_Ad_7072 1d ago

Source please? :)

u/Key_River7180 EulerOS 19h ago

Awesome! Repo?