floppyb problem

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.
Post Reply
autrign

floppyb problem

Post by autrign »

I have implement my floppy driver. It works with floppy-a well. But it doesnt work with floppy-b in Bochs. I mean I change the base address of floppy to set floppy b active, but it stucks when I send a command and wait for an interrupt. I mean I got an interrupt after resetting floppy a. But dont get any int after resetting floppy b. Do I have to do something to enable and read from floppy b??
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:floppyb problem

Post by Neo »

floppy A and B are on the primary controller, so this should not be that diificult. btw have you enabled floopy drive B in bochsrc file?
you dont have to reset them separatley as they are on the same controller. You could post your code here and mayvbe someone will see the error.
Only Human
autrign

Re:floppyb problem

Post by autrign »

Neo wrote: floppy A and B are on the primary controller, so this should not be that diificult. btw have you enabled floopy drive B in bochsrc file?
Yes, it shouldnt. But it did stuck when I just change the base addr from 3f0 to 370. And is this enough to enable floppy drive B in bochsrc file???

floppya: 1_44=a.img, status=inserted
floppyb: 1_44=b.img, status=inserted
Tim

Re:floppyb problem

Post by Tim »

autrign wrote: Yes, it shouldnt. But it did stuck when I just change the base addr from 3f0 to 370.
By doing that, you've invented an entire new floppy drive controller. As Neo says, each controller supports both drive A and B (drives C and D can also exist). So drives A and B are used through the same controller base address.
Slasher

Re:floppyb problem

Post by Slasher »

on the primary controller foppy B is drive number 1
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:floppyb problem

Post by Neo »

so did it work?
Only Human
Post Reply