ports,harddisk....
Posted: Mon Sep 02, 2002 9:32 am
Hi,
I'm trying to read sector 64 at cylinder 1 , head 0 of the harddisk.
That works fine if I first read sector 63 at cylinder 0, head 0.
But if I don't read sector 63 at cy l 0, head 0 then
sector 64 (cyl 1,head 0) doesn't get the right info...
Any ideas why?
I thought it was something with seek... so I tried to do a seek...
I setted the same variables then outputed 0x70,
and then setted the same variables again and outputed a read, but that didn't change a thing...
So how di I fix this?
Also I output the sector number using my outportdd function which sends 2 bytes which is 66536 bytes big... but my disk has more sectors than 66536, so should I make a function called outportw (which sends 4 bytes) instead?
Best,
Frank
I'm trying to read sector 64 at cylinder 1 , head 0 of the harddisk.
That works fine if I first read sector 63 at cylinder 0, head 0.
But if I don't read sector 63 at cy l 0, head 0 then
sector 64 (cyl 1,head 0) doesn't get the right info...
Any ideas why?
I thought it was something with seek... so I tried to do a seek...
I setted the same variables then outputed 0x70,
and then setted the same variables again and outputed a read, but that didn't change a thing...
So how di I fix this?
Also I output the sector number using my outportdd function which sends 2 bytes which is 66536 bytes big... but my disk has more sectors than 66536, so should I make a function called outportw (which sends 4 bytes) instead?
Best,
Frank