NASM Forum > Programming with NASM

section directives: beginner vs bootloader

<< < (2/2)

I'm not sure whether I understand the question. Your boot sector has to be written to the boot (first) sector of the drive you are booting from (ie Track 0 Sector 0). It doesn't matter what extension your assembled file has, as only the contents of the file are written to the drive. The boot code can span more than one sector, but the BIOS will only load the first sector, so that has to include code to load the rest of your code.


[0] Message Index

[*] Previous page

Go to full version