Page 1 of 2
Need HDD & FDD drivers in assembler working in protect m
Posted: Fri Mar 18, 2005 2:22 am
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...
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 2:33 am
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.
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 3:04 am
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...
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 3:13 am
by Solar
All this (links, code, wisdom advise) is readily available in the Quick Links and the FAQ...
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 3:57 am
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...
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 4:02 am
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.
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 4:15 am
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 :-\
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 5:32 am
by bubach
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 5:35 am
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.
)
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 7:12 am
by Candy
Pype is Belgian and from the nearest city south of the one I was born in. He speaks French (Welsh, Waals) though.
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 8:37 am
by Grey Samurai
ok...
I am from Ukraine...
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 8:57 am
by mystran
I'm from Finland and mun ?idinkieli on suomi josta te ette kyll? suurin osa ymm?rr? yht??n mit??n.
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 9:05 am
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
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 11:32 am
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.
Re:Need HDD & FDD drivers in assembler working in protec
Posted: Fri Mar 18, 2005 11:52 am
by Grey Samurai