A collection of codes written while studying os-dev from "Writing a Simple Operating System — from Scratch" By Nick Blundell.
All codes for boot sector programming are compiled using command:
$> nasm input_file.asm -f bin -o output_file.bin
To run the boot sector code, use bochs
or qemu
.
- Print values from register and memory addresses.
- Successfully read data from disk sectors.
- Defined GDT in 32 Bit mode and printing routine for 32 bit mode.
- Switched for 16 bit Real Mode to 32 bit Protected Mode.