i have this code
Code: Select all
[BITS 16] ; 16 bit code generation
[ORG 0x7C00] ; ORGin location is 7C00
;Main program
main: ; Main program label
jmp main ; Put it into a coninuous loop to stop it running off into
; the memory running any junk it may find there.
; End matter
times 510-($-$$) db 0 ; Fill the rest of the sector with zeros
dw 0xAA55 ; Boot signature
this script to assemble and put on a floppy
Code: Select all
nasm bootloader.s -f bin -o bootloader.bin
sudo dd if=bootloader.bin bs=512 count=1 of=/dev/fd0