- Basics
- Commands
- assemble:
> nasm -f bin boot.asm -o boot.bin
- view assemled instructions:
> ndisasm boot.bin
- execute binary
> qemu-system-x86_64 -hda ./boot.bin
- write to drive: choose the drive properly!!! dd is a powerful command
> sudo dd if=./boot.bin of=/dev/sdc
- assemble:
-
- writing a character
- writing a message
-
- setup segment registers: DS, ES
- setup stack and stack pointer
-
- handle bios parameter block - working on pc!
-
- write custom interrupts
-
- create make file
- handle assemble
- write message after boot sector
- fill zeros to create another sector in the virtual hard-disk (boot.bin)
-
- using Int 13/AH=02h