Floppy disk reads using the BIOS...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
JJeronimo
Member
Member
Posts: 202
Joined: Wed Oct 18, 2006 3:29 pm

Post by JJeronimo »

frank wrote:Sector numbers are 1 based, that is they start at 1 and the last addressable sector is number 18. There is no sector number 0.
Thanks.
So what happens if I program the floppy drive to read the sector number 0 of a track?

And, by the way, do the hard disks work the same way on this point?

JJ
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post by frank »

It would give you an invalid address error or something like that. IRC it is the same way for hard drives. LBA addressing starts from 0, but in CHS mode sector addresses start at 1.
JJeronimo
Member
Member
Posts: 202
Joined: Wed Oct 18, 2006 3:29 pm

Post by JJeronimo »

frank wrote:It would give you an invalid address error or something like that. IRC it is the same way for hard drives. LBA addressing starts from 0, but in CHS mode sector addresses start at 1.
Thanks.
So, It's a Bochs bug...

JJ
Post Reply