Boot-sector

Tell the NASM (assembler) that the assembly code should be compiled in 16-bits

[BITS 16] Tell NASM that the program is loaded to memory address 0x7C00

[ORG 0X7C00] Tell NASM to jump to this bit in my program

jmp$ Add the two bytes required at the end of the sector

times 510-($-$$)db0 dw 0xAA55 Assemble boot sector program using NASM (Assuming our program is called "BootSctr.asm")

nasmw BootSctr.asm Copy the boot sector program into the floppy's boot sector (using debug program) debug Boot Sctr w 100 0 0 1 q