so for floppy disk we have to set 11111000 = 0xF8, because 3rd bit to be set is 1 ( for floppy drive , as mentioned)The Media Descriptor Byte (bpbMedia) is a byte code that contains information about the disk. This byte is a Bit Pattern:
Bits 0: Sides/Heads = 0 if it is single sided, 1 if its double sided
Bits 1: Size = 0 if it has 9 sectors per FAT, 1 if it has 8.
Bits 2: Density = 0 if it has 80 tracks, 1 if it is 40 tracks.
Bits 3: Type = 0 if its a fixed disk (Such as hard drive), 1 if removable (Such as floppy drive)
Bits 4 to 7 are unused, and always 1.
but the 3rd bit has been set 0 and so the byte is set 0xF0.
which one is correct?