Need HDD & FDD drivers in assembler working in protect m

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.
Grey Samurai

Need HDD & FDD drivers in assembler working in protect m

Post by Grey Samurai »

Hi people!!!
It is my first poster...
I write my own OS (GreyOS) and stop on FDD & HDD driver realisation... may be someone take me link with it... because write driver from zero it is time spending...

P.S. Need HDD & FDD drivers in assembler working in protect mode...
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Need HDD & FDD drivers in assembler working in protec

Post by Candy »

Might I suggest actually writing it yourself? It is not just time, it's a learning process. This site is also not meant to be a code database, but it's meant to solve problems with your own code (which you wrote) and to help you work out ideas about new methods to do something.

If you can't be bothered to do any of these, then make a VM86 mode handler and use the BIOS functions.
Grey Samurai

Re:Need HDD & FDD drivers in assembler working in protec

Post by Grey Samurai »

Driver must use only ports for read/write...
I know this place is not database, but may be some clever programmer (but not bla-bla-bla specialist) will can help me in it, for example by - links, code or wisdom advise...
Thanks...
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Need HDD & FDD drivers in assembler working in protec

Post by Solar »

All this (links, code, wisdom advise) is readily available in the Quick Links and the FAQ...
Every good solution is obvious once you've found it.
Grey Samurai

Re:Need HDD & FDD drivers in assembler working in protec

Post by Grey Samurai »

Where is Quick Links and FAQ?

Sorry... english is not my native language and I can do some mistakes as in speaking as in understanding...

Maybe you know some links about lowlevel programming, OS programming, in assembler of couse... I'll be thankfull...

And may be someone have source of his own OS source as example...
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Need HDD & FDD drivers in assembler working in protec

Post by Pype.Clicker »

Grey Samurai wrote: Driver must use only ports for read/write...
That would have sounded much less like a teacher-to-student assignment with a "should" instead of a "must" ...

My personnal recommendation is mobius's drivers (which are in C) and ATA & FDC infos (found on www.osdever.net or wherever BonaFide has moved) to understand what's going on.

I'll discourage you to cut&paste disk drivers from someone else straight into your kernel for they usually imply many features from the OS (synchronizing, buffers, etc), and assumptions that migh not exist in your kernel. Moreover, guessing those assumptions from some ASM code will probably require you more time than writing the driver from scratch. Hence the suggestion of C code.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Need HDD & FDD drivers in assembler working in protec

Post by Pype.Clicker »

Grey Samurai wrote: Where is Quick Links and FAQ?
.:QuickLinkz:. is a sticky thread (see the QuickLinkz at the bottom of my post). The OSFAQ is http://www.osdev.org/osfaq2/ (just click the banner in the forum)
Sorry... english is not my native language and I can do some mistakes as in speaking as in understanding...
np.
Maybe you know some links about lowlevel programming, OS programming, in assembler of couse... I'll be thankfull...
http://www.osdev.org/osfaq2/index.php/TimRobinson points towards M?bius sources, which i recommend. Oh well, you can have a look at clicker sources too, ofcourse, but i doubt they'll be of any use :-\
User avatar
bubach
Member
Member
Posts: 1223
Joined: Sat Oct 23, 2004 11:00 pm
Location: Sweden
Contact:

Re:Need HDD & FDD drivers in assembler working in protec

Post by bubach »

"Simplicity is the ultimate sophistication."
http://bos.asmhackers.net/ - GitHub
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Need HDD & FDD drivers in assembler working in protec

Post by Solar »

Grey Samurai wrote: Sorry... english is not my native language and I can do some mistakes as in speaking as in understanding...
Not knowing isn't a problem, only not learning is.

So far, there hasn't been any native speaker in this thread! (Pype is French IIRC;, Candy is from the Netherlands, I'm German, bubach is from Sweden. :-D )
Every good solution is obvious once you've found it.
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Need HDD & FDD drivers in assembler working in protec

Post by Candy »

Pype is Belgian and from the nearest city south of the one I was born in. He speaks French (Welsh, Waals) though.
Grey Samurai

Re:Need HDD & FDD drivers in assembler working in protec

Post by Grey Samurai »

ok... :)
I am from Ukraine...
mystran

Re:Need HDD & FDD drivers in assembler working in protec

Post by mystran »

I'm from Finland and mun ?idinkieli on suomi josta te ette kyll? suurin osa ymm?rr? yht??n mit??n.
Tehy

Re:Need HDD & FDD drivers in assembler working in protec

Post by Tehy »

mystran wrote: I'm from Finland and mun ?idinkieli on suomi josta te ette kyll? suurin osa ymm?rr? yht??n mit??n.
I understand... I from Finland too :)
Dex4u

Re:Need HDD & FDD drivers in assembler working in protec

Post by Dex4u »

I have written a pmode floppy driver in asm, i found most of the info to code it from this doc
http://www.nondot.org/sabre/os/files/Di ... asheet.pdf
Along with some C code ( and i do not understand most C )
http://gaztek.sourceforge.net/osdev/hardware/fdc.c
But if i was to do it again, i would use v86 or switch to and from realmode, as more people are using or going to be using, usb floppy, and a usb driver is not easy to do, but if you switch and the bios impelments USB support then you should be ok.
Grey Samurai

Re:Need HDD & FDD drivers in assembler working in protec

Post by Grey Samurai »

Dex4u wrote: I have written a pmode floppy driver in asm, i found most of the info to code it from this doc
http://www.nondot.org/sabre/os/files/Di ... asheet.pdf
...
Thanks...
Post Reply