Accesing floppy drive in protected mode
-
- Member
- Posts: 223
- Joined: Thu Jul 05, 2007 8:58 am
Accesing floppy drive in protected mode
I wan't to learn how to access my floppy drive while running in protected mode, but i can't get any clue from the wiki article about this. Can somebody help me by pushing me in the right direction.
You could search this forum, I guess this subject has been discussed a lot.
You have three options:
Switch back to real mode to execute a bios call
Access the hardware directly.
I could say; use vm86 task, but hey, that requires a lot of programming to, and you still have to go to real mode to execute a bios call or access hardware directly, I believe.
You have three options:
Switch back to real mode to execute a bios call
Access the hardware directly.
I could say; use vm86 task, but hey, that requires a lot of programming to, and you still have to go to real mode to execute a bios call or access hardware directly, I believe.
-
- Member
- Posts: 223
- Joined: Thu Jul 05, 2007 8:58 am
At the end of the wiki article there are links. Those are probably what you're looking for.davidv1992 wrote:i've tried, and i couldn't found anything.
This one isn't bad...
C8H10N4O2 | #446691 | Trust the nodes.
-
- Member
- Posts: 62
- Joined: Fri Jun 29, 2007 8:36 pm
Try reading the datasheets at http://www.datasheetarchive.com/search. ... sType=part.
Basically, you write to various ports to select the command you want to execute, run it then wait for an interrupt. You can use pio or dma for data transfers (dma is probably better).
Regards,
John
Basically, you write to various ports to select the command you want to execute, run it then wait for an interrupt. You can use pio or dma for data transfers (dma is probably better).
Regards,
John
Never fear, I is here: ![Wink :wink:](./images/smilies/icon_wink.gif)
Here is the pmode floppy driver from DexOS, it is well commented and follows the pedo code in the intel floppy controler PDF.
Floppy code:
http://www.dex4u.com/tuts/FloppyDriver.zip
Intel PDF:
http://bos.asmhackers.net/docs/floppy/d ... asheet.pdf
PS: I am doing a Dev Mag, anyone want to write a floppy tut is most welcome.
Sample:
http://www.dex4u.com/DexMag/DexMag1-0.htm
![Wink :wink:](./images/smilies/icon_wink.gif)
Here is the pmode floppy driver from DexOS, it is well commented and follows the pedo code in the intel floppy controler PDF.
Floppy code:
http://www.dex4u.com/tuts/FloppyDriver.zip
Intel PDF:
http://bos.asmhackers.net/docs/floppy/d ... asheet.pdf
PS: I am doing a Dev Mag, anyone want to write a floppy tut is most welcome.
Sample:
http://www.dex4u.com/DexMag/DexMag1-0.htm