Problem with floppy. [solved]
Posted: Sun Jan 04, 2004 8:26 pm
I'm trying to read some data from the floppy, I get contact and such, but when I try to read from the floppy I see that all the values below is 0!
FDD: st0 0 st1 0 st2 0 Cylinder 0 Head 0 Sector 0 Sector size 0.
I looked in the bochs log, this is what I found:
Do you have a clue about what I'm doing wrong?
Are my definitions wrong?
And one question more: how many sectors are there per track on a floppy?
Here's the code:
http://rafb.net/paste/results/k2530555.html
OOPS!
Sorry!
I solved it Data should pass through the data-register.
I practicised some english anyway.
FDD: st0 0 st1 0 st2 0 Cylinder 0 Head 0 Sector 0 Sector size 0.
I looked in the bochs log, this is what I found:
Code: Select all
00081379435e[DMA ] write to command register: value(10h) not 0x00
00081379450e[DMA ] write to command register: value(10h) not 0x00
00081550370e[FDD ] io_write: 0x3f5: invalid floppy command 0x06
Are my definitions wrong?
Code: Select all
#define FDC_CCR 0x3F7
#define FDC_DOR 0x3F2
#define FDC_DATA 0x3F5
#define FDC_MSR 0x3F4
Here's the code:
http://rafb.net/paste/results/k2530555.html
OOPS!
Sorry!
I solved it Data should pass through the data-register.
I practicised some english anyway.