Simple Generic Floppy Driver for Pmode 32bit

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
User avatar
Omega
Member
Member
Posts: 250
Joined: Sun May 25, 2008 2:04 am
Location: United States
Contact:

Simple Generic Floppy Driver for Pmode 32bit

Post by Omega »

Update: I published it to the OSDEV Wiki. I wasn't sure how to create a page for it so I placed it in my user page. I had to change my name to Omega because the Wiki hates underscores, but I actually like my new nick better so its all good. Now for my 32 Bit Floppy Driver Code/Guide can be found at this address until otherwise specified: http://wiki.osdev.org/User:Omega

Comments, Questions, or Concerns are welcomed. I hope you enjoy.
Last edited by Omega on Tue Jul 08, 2008 2:21 am, edited 2 times in total.
Free energy is indeed evil for it absorbs the light.
User avatar
Zenith
Member
Member
Posts: 224
Joined: Tue Apr 10, 2007 4:42 pm

Re: Simple Generic Floppy Driver for Pmode 32bit

Post by Zenith »

A few things I'd like to note
  • - Implementation seems fairly complete. I like how it's more the style of a tutorial, but it would also be nice if it was more of a reference of how the FDC works and less code-specific. However, I do like how you describe each step concisely and with a fair bit of information (though more wouldn't hurt)
    - It doesn't seem that 'generic'; it's fairly focused on C, and does make some assumptions on how someone has implemented their interrupt handling. Like I said, something more of a reference style would help.
    - get_bootsector, ReadRoot, and company wouldn't be really part of this implementation - best be handled by a separate FAT (or EXT, because some floppies are formatted as such) filesystem driver
As an aside, I'm assuming this is part of your drive to dissolve the wiki, then? Since you're having a spot of trouble with reading the root directory in FAT12, this might be helpful.

Final Judgement: Other than my concerns, seems proper. A little more detail or description on some of the commands to the FDC and DMA would help clarify this for people. I'll make sure to add this information to the wiki :twisted:, or, I'll let you add it yourself.

I also don't get how you expect this to really be community code/information because we, as you should be well aware of, can't edit your posts :wink:.

Good luck!
"Sufficiently advanced stupidity is indistinguishable from malice."
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Re: Simple Generic Floppy Driver for Pmode 32bit

Post by Alboin »

I'll make sure to add this information to the wiki :twisted:
No direct license, no addy. ;)
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Omega
Member
Member
Posts: 250
Joined: Sun May 25, 2008 2:04 am
Location: United States
Contact:

Re: Simple Generic Floppy Driver for Pmode 32bit

Post by Omega »

I was hoping people would simply post updates in a new thread or just pm it to me or whatever. OK, I thought about what you said and I will put my hate for the wiki aside for the sake of the community. After all, I don't want to destroy it, I just want to improve it. What does no direct license no addy imply? My license is take it freely, use it freely, blame yourself for problems. OK, I'll take the readRoot out, actually the get_bootsector could go in a separate fat12 file too. I'll make it better in the wiki. It says I need to join the wiki group? Thanks
Free energy is indeed evil for it absorbs the light.
User avatar
Omega
Member
Member
Posts: 250
Joined: Sun May 25, 2008 2:04 am
Location: United States
Contact:

Re: Simple Generic Floppy Driver for Pmode 32bit

Post by Omega »

Hi. I have just published my guide to the Wiki. For those concerned, please see the first post in this thread for more info. Thanks
Free energy is indeed evil for it absorbs the light.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: Simple Generic Floppy Driver for Pmode 32bit

Post by Dex »

For those that want a ASM example, you can see my code here: http://forum.osdev.org/viewtopic.php?f= ... fdd+driver
User avatar
Omega
Member
Member
Posts: 250
Joined: Sun May 25, 2008 2:04 am
Location: United States
Contact:

Re: Simple Generic Floppy Driver for Pmode 32bit

Post by Omega »

You should create a wiki page with that code and I will link to it as an alternative.
Free energy is indeed evil for it absorbs the light.
Post Reply