I thought i would try the osdev tutorial again.
I have a floppy drive + disc, im using bochs, and im writing to the boot sector with the debug command.
"w 100 0 0 1" <- mabey the address is wrong?
The problem is, after i format the FD, then write the boot.bin file to the boot sector.
Windows is still giving me the unformatted disc error.
The boot program works in bochs, usually. Just wondering why it may think its unformatted in windows.
This is a copy of the start of the program + parameter block.
Code: Select all
bits 16
org 0x7c00
start: jmp boot_program
bpbOEM: DB "bootdisc"
bpbBytesPerSector: DW 512
bpbSectorsPerCluster: DB 1
bpbReservedSectors: DW 1
bpbNumberOfFATs: DB 2
bpbRootEntries: DW 224
bpbTotalSectors: DW 2880
bpbMedia: DB 0xf0 ;// 1.44 MB FD(f0)
bpbSectorsPerFAT: DW 9
bpbSectorsPerTrack: DW 18
bpbHeadsPerCylinder: DW 2
bpbHiddenSectors: DD 0
bpbTotalSectorsBig: DD 0
bsDriveNumber: DB 0
bsUnused: DB 0
bsExtBootSignature: DB 0x29
bsSerialNumber: DD 0xa0a1a2a3
bsVolumeLabel: DB "MOS FLOPPY "
bsFileSystem: DB "FAT12 "
boot_program:
..