Skip to content
Ap-0007Public

About

πŸ’» Custom operating system built from scratch in Assembly. Bare-metal systems programming from bootloader to kernel.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


⚑ What is this?

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.


βš™οΈ How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    πŸ”Œ 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)      β”‚                          β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🧱 Tech Stack

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

πŸš€ Getting Started

Prerequisites

nasm             # Netwide Assembler
qemu-system-i386 # x86 emulator
make             # Build automation (optional)

Build & Run

# 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.txt

πŸ“ Project Structure

myos/
β”œβ”€β”€ 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.


πŸ“š Learning Path

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

🀝 Contributing

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-feature

Built by vanta.nox Β· from power-on to pixel

About

πŸ’» Custom operating system built from scratch in Assembly. Bare-metal systems programming from bootloader to kernel.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages