How samsepi0x0/os-dev works
Project type and purpose
• This is an educational OS‐development repository containing boot‐sector code, 32-bit protected-mode setup, and very simple “kernel” routines in C and assembly.
• The README confirms it’s a collection of exercises from “Writing a Simple Operating System — from Scratch.”
File structure
• Top-level directories:
• boot-sector-programming – a series of 16-bit real-mode .asm → .bin examples (bootloader, printing, disk read)
• 32-bit-programming – setting up a GDT, switching to 32-bit protected mode, and a basic printing routine
• kernel – tiny C and assembly routines linked into .bin with accompanying .o/.dis for demonstration
• Configuration: each example has its own Bochs/QEMU config (bochsrc), and outputs .bin images.
• There is no high-level framework or external service integration; it’s pure low-level system software.
README for additional insights
• Build instructions: nasm for .asm → .bin, run with BOCHS/QEMU
• Progress notes: real-mode prints, disk reads, GDT definition, mode switching to protected mode
Essential architectural elements to capture
• The linear boot stages and hand-off points
• Mode transition: Real Mode to Protected Mode via GDT
• Invocation of printing and disk-I/O routines at each stage
• The fact that everything resides in flat .bin files on disk sectors