ATA IDE PIO 1.0 Library in NASM

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.
User avatar
XCHG
Member
Member
Posts: 416
Joined: Sat Nov 25, 2006 3:55 am
Location: Wisconsin
Contact:

ATA IDE PIO 1.0 Library in NASM

Post by XCHG »

I just released the first version of my ATA IDE PIO 1.0 library. This library is coded in NASM and is free. You can download this library by clicking here

The procedures/functions that are included in this library are:

Code: Select all

__IDEWaitForDrive
__IDEReadFromPortsCHS
__IDEFillSectorsWithDWORD
__IDESetTransferMode
__IDEWriteBlockToPortsLBA28
__IDECheckControllerExistence
__IDEReadBlockFromPortsLBA28
__IDESetBlockSize
__IDECheckDriveExistence
__IDESleep
__IDERecalibrate
__IDEWriteToPortsLBA28
__IDEReadFromPortsLBA28
__IDEDiagnose
__IDEIdentifyDrive
__IDEProbe

All prototypes are shown in the C/C++ style. The library uses the StdCall for all the procedures/functions. All the procedures/functions are heavily commented and documented. For the first version, the Q&A section of the documentation and some other parts (like tutorial and etc) are missing. I will do my best writing these as soon as possible. Please let me know what you think. The library is ATA1 compliant.
Last edited by XCHG on Fri Nov 09, 2007 6:25 am, edited 1 time in total.
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.
mahesh.vallamk
Posts: 6
Joined: Fri Nov 02, 2007 6:36 am

Thank you

Post by mahesh.vallamk »

thanks very much i will try out this method
User avatar
djsilence
Member
Member
Posts: 70
Joined: Wed Oct 01, 2008 11:18 am
Location: Ukraine, Kiev
Contact:

Re: ATA IDE PIO 1.0 Library in NASM

Post by djsilence »

Hy, XCHG, have you any mirror? I think that link is broken... (
Don't think a ****, but in ukrainian schools English is TOO BAD!
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

Re: ATA IDE PIO 1.0 Library in NASM

Post by Troy Martin »

And the award for biggest necro of the year goes to...

djsilence!!!
Seriously dude, this topic is from November '07. Read the dates before replying from the search tool.

EDIT: XCHG hasn't visited since the middle of last year, as well.
EDIT2: Damn, it's not in the Internet Archive Wayback Machine, either. Looks like you're outta luck here.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: ATA IDE PIO 1.0 Library in NASM

Post by AJ »

Too late! A few days ago, a post was resurrected from before the forums even came over from MT :)

Cheers,
Adam
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: ATA IDE PIO 1.0 Library in NASM

Post by 01000101 »

lol I saw that post, I think it was from 2001 haha.

I had never seen this post, so I can't say I'm completely sorry that it was resurrected. It seems like a cool library, I'm not so sure why it was coded in Assembly as libraries are generally meant to be portable.
User avatar
Dex
Member
Member
Posts: 1444
Joined: Fri Jan 27, 2006 12:00 am
Contact:

Re: ATA IDE PIO 1.0 Library in NASM

Post by Dex »

ThymeCypher
Posts: 21
Joined: Tue Mar 24, 2009 10:59 am

Re: ATA IDE PIO 1.0 Library in NASM

Post by ThymeCypher »

Atleast it was something useful (If the link worked) resurrected.
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: ATA IDE PIO 1.0 Library in NASM

Post by bewing »

I remember this thread from the first time XCHG posted it -- I may have downloaded the file. However, it is not on my main HD. Which means, it's either on my backup HD, or I burned it to a CD, or I never saved a copy (maybe because I didn't like the code). I'll look on my CDs, but if it's on my backup HD it may be a week before I can look for it there. So if somebody else can find it first, please do.
ThymeCypher
Posts: 21
Joined: Tue Mar 24, 2009 10:59 am

Re: ATA IDE PIO 1.0 Library in NASM

Post by ThymeCypher »

Mhm, I'd be willing to host it myself.
User avatar
01000101
Member
Member
Posts: 1599
Joined: Fri Jun 22, 2007 12:47 pm
Contact:

Re: ATA IDE PIO 1.0 Library in NASM

Post by 01000101 »

Same, I have plenty of space here for storage on my server.
I hope someone finds this code, it seems very useful. :D
User avatar
djsilence
Member
Member
Posts: 70
Joined: Wed Oct 01, 2008 11:18 am
Location: Ukraine, Kiev
Contact:

Re: ATA IDE PIO 1.0 Library in NASM

Post by djsilence »

Yeah, Dex was right. That link shows "Not in archive". :(

I understand that it was stupid to load up that topic (really stupid :D ) but this link is posted in Wiki at the ATA PIO Mode and I liked the functions XCHG wrote (just names of them). I thought it will be great to use that lib but while opening link I got some stupid sites with stupid content. :D

Sorry, dudes.... #-o
Don't think a ****, but in ukrainian schools English is TOO BAD!
User avatar
djsilence
Member
Member
Posts: 70
Joined: Wed Oct 01, 2008 11:18 am
Location: Ukraine, Kiev
Contact:

Re: ATA IDE PIO 1.0 Library in NASM

Post by djsilence »

... And see: some guys wrote that it seems to be a good code... So... I am not alone! :D
Last edited by djsilence on Sat Mar 28, 2009 2:32 am, edited 1 time in total.
Don't think a ****, but in ukrainian schools English is TOO BAD!
User avatar
djsilence
Member
Member
Posts: 70
Joined: Wed Oct 01, 2008 11:18 am
Location: Ukraine, Kiev
Contact:

Re: ATA IDE PIO 1.0 Library in NASM

Post by djsilence »

Bewing, I tried... But google shows "Nothing founded". Great?

If you find it on your CDs (Maybe a week or even months after I post this message) please, load up this topic ONCE AGAIN :D :D :D and upload the source... Thanks!
Don't think a ****, but in ukrainian schools English is TOO BAD!
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Re: ATA IDE PIO 1.0 Library in NASM

Post by bewing »

Nope, I checked my backups -- and if I ever downloaded it, I didn't save it.
Maybe if you PM XCHG about his library code, he might get the message sometime.
Locked