Re: How can I replace INT instruction ?
Posted: Tue May 17, 2011 4:57 pm
Yes, data_readBuffer must be a char*, sorry.gerryg400 wrote:data_readBuffer must be a char [512]. Not a char.
Comments like this make me think that you are not really reading the documentation. There are 256 x 16-bit words to read. Not 256 bytes. Not even 512 bytes.In that code im trying to check if in the var data_readBuffer are the 256 bytes information of the harddisk.
Also my personal opinion is that the code in the ATA/IDE tutorial should not be used if you want a reliable, maintainable driver. The ATA PIO mode article is better. You also need the real ATA specs.
I understood bad the documentation, thanks for the clarification.
Do you have any idea about what changes should I make in my code for put the information in data_readBuffer ?
I sent all ports that I need, I think that this step should not be very difficult.
Maybe Im not reading complete sectors... but how to.. :/