I'm trying to write a floppy driver, but I couldn't success yet
Would you recommend any good resource ? I have already freedos32 and linux drives, but there is very strange things happend
If I try to read boot sector
* Bochs = destroy boot sector
* QEmu = reads 000000....
* VMware = Crash !
If you have time, maybe you could take a look here a part of my source, http://int6.net/fdc.rar
Best regards,
Just an other floppy crap :(
My floppy code worked fine on all real PC, but give div errors in most emulators.
When i try to find out why, it came down to a div by 0 error, as some of the BPB are not the same as the image boot sector.
eg: this would give error in emulators
But this is more to do with fat12, than the floppy driver, if it's just the driver then you can look at DexOS code here: REMOVED
Or you can get more examples from bubachs site here: http://bos.asmhackers.net/docs/floppy/
When i try to find out why, it came down to a div by 0 error, as some of the BPB are not the same as the image boot sector.
eg: this would give error in emulators
Code: Select all
mov ax,[bpbRootEntries]
mov cx, 32
mul cx
div word [bpbBytesPerSector]
mov [RootSize],ax
Or you can get more examples from bubachs site here: http://bos.asmhackers.net/docs/floppy/
Last edited by Dex on Sun Apr 22, 2007 7:14 am, edited 1 time in total.