Need HDD & FDD drivers in assembler working in protect m
Need HDD & FDD drivers in assembler working in protect m
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...
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
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.
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
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...
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
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.
Re:Need HDD & FDD drivers in assembler working in protec
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...
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...
- Pype.Clicker
- 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
That would have sounded much less like a teacher-to-student assignment with a "should" instead of a "must" ...Grey Samurai wrote: Driver must use only ports for read/write...
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.
- Pype.Clicker
- 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
.: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)Grey Samurai wrote: Where is Quick Links and FAQ?
np.Sorry... english is not my native language and I can do some mistakes as in speaking as in understanding...
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 :-\Maybe you know some links about lowlevel programming, OS programming, in assembler of couse... I'll be thankfull...
Re:Need HDD & FDD drivers in assembler working in protec
I got some docs and snippets for FDD/DMA at:
http://bos.asmhackers.net/docs/floppy/
http://bos.asmhackers.net/docs/dma/
Just added: http://bos.asmhackers.net/docs/ata/
HTH
http://bos.asmhackers.net/docs/floppy/
http://bos.asmhackers.net/docs/dma/
Just added: http://bos.asmhackers.net/docs/ata/
HTH
Re:Need HDD & FDD drivers in assembler working in protec
Not knowing isn't a problem, only not learning is.Grey Samurai wrote: Sorry... english is not my native language and I can do some mistakes as in speaking as in understanding...
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. )
Every good solution is obvious once you've found it.
Re:Need HDD & FDD drivers in assembler working in protec
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
ok...
I am from Ukraine...
I am from Ukraine...
Re:Need HDD & FDD drivers in assembler working in protec
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
I understand... I from Finland toomystran wrote: 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
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.
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
Thanks...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
...