MyOS is an operating system built from absolute zero β no libraries, no abstractions, no safety nets. Just raw Assembly, talking directly to hardware.
This is bare-metal systems programming in its purest form:
- π Bootloader β The first 512 bytes the CPU ever sees
- π§ Kernel β Memory management, interrupts, and beyond
- π₯οΈ Hardware β Direct VGA, keyboard, and disk I/O
No C runtime. No GRUB. No shortcuts. Just mov, int, and the relentless pursuit of understanding what happens when you turn on a computer.
Every layer between you and the metal is something someone else wrote. This is mine.
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π POWER ON β
β β
β BIOS loads first 512 bytes from disk β
β Looks for boot signature: 0xAA55 β
ββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π BOOTLOADER (Stage 1) β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββ β
β β Real Mode (16-bit) β β
β β βββ Set up segment registers β β
β β βββ Load kernel from disk β β
β β βββ Enable A20 line β β
β β βββ Set up GDT β β
β β βββ Switch to Protected Mode (32-bit) β β
β βββββββββββββββββββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β π§ KERNEL β
β β
β βββββββββββββ ββββββββββββββ ββββββββββββββββ β
β β Interrupt β β Memory β β VGA Text β β
β β Handlers β β Management β β Mode Driver β β
β βββββββββββββ ββββββββββββββ ββββββββββββββββ β
β β
β βββββββββββββ ββββββββββββββ β
β β Keyboard β β Disk I/O β β
β β Driver β β (ATA) β β
β βββββββββββββ ββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Layer | Technology | Purpose |
|---|---|---|
| Language | x86 Assembly (NASM) | Everything. All of it. |
| Boot | Custom Bootloader | MBR bootstrap & mode switching |
| Kernel | Custom Kernel | Core OS functionality |
| Platform | x86 (i386+) | Target architecture |
| Emulation | QEMU / Bochs | Testing without real hardware |
nasm # Netwide Assembler
qemu-system-i386 # x86 emulator
make # Build automation (optional)# Clone the repository
git clone https://github.com/Ap-0007/myos.git
cd myos
# Assemble the bootloader
nasm -f bin boot/boot.asm -o boot.bin
# Run in QEMU
qemu-system-i386 -fda boot.bin
# Or with Bochs
bochs -f bochsrc.txtmyos/
βββ boot/ # Bootloader source
β βββ boot.asm # Stage 1 bootloader
βββ .gitignore # Git ignore rules
βββ LICENSE # License file
βββ README.md # You are here
The structure is minimal because every byte is intentional.
If you're interested in OS development, here's the progression this project follows:
1. Real Mode basics β Segment registers, BIOS interrupts
2. Bootloader β MBR, disk reads, boot signature
3. Protected Mode β GDT, A20 line, 32-bit switch
4. VGA text mode β Direct video memory writes
5. Interrupts β IDT, ISRs, keyboard handler
6. Memory management β Paging, physical/virtual mapping
7. File system β FAT12/16 reading from disk
OS development is a rabbit hole β and you're welcome to fall in with me.
# Fork the repo
# Create your feature branch
git checkout -b feat/your-feature
# Commit your changes
git commit -m "feat: add your feature"
# Push and open a PR
git push origin feat/your-featureBuilt by vanta.nox Β· from power-on to pixel