Am I doing this right? (floppy access/control)
Posted: Tue Feb 25, 2003 12:00 am
Hi everyone,
I'm playing around with this little test OS of mine, but floppy access is getting troublesome. For now, I just want to be able to seek all over the disk, but it isn't happening... Here's what I'm doing, can anyone tell me what's wrong?
send 24 to 0x3f2 (start motor 1)
send the recal command to the FIFO followed by 0
wait for an interrupt
Wait until bit 4 of the Main Status Register is low
Send the seek command, then 0 (top side of disk, drive 0), then the track no.
wait for an interrupt
send the SenseI and get the output
After all this, nothing happens!!! Bochs tells me I'm on cylinder 255, I think the real PC does too. So, what am I doing wrong here??? Anybody???
-ReK
I'm playing around with this little test OS of mine, but floppy access is getting troublesome. For now, I just want to be able to seek all over the disk, but it isn't happening... Here's what I'm doing, can anyone tell me what's wrong?
send 24 to 0x3f2 (start motor 1)
send the recal command to the FIFO followed by 0
wait for an interrupt
Wait until bit 4 of the Main Status Register is low
Send the seek command, then 0 (top side of disk, drive 0), then the track no.
wait for an interrupt
send the SenseI and get the output
After all this, nothing happens!!! Bochs tells me I'm on cylinder 255, I think the real PC does too. So, what am I doing wrong here??? Anybody???
-ReK