Well, I think I figured out what I was doing wrong the first time around,
in not always getting the HPFS SuperBlock.
Rather than figuring out why there were 64 sectors of garbage before the
boot sector on the drive, I kludged the code. It worked on most drives,
because most drives apparently have the same number of hidden sectors.
As it turns out, which at least some of you must know, there is a count of
"hidden" sectors on a drive, retrievable via a category 8,
DSK_GETDEVICEPARAMS call, in the BIOS parameter block data.
So, rather than incrementing the heads value (to increase the sector offset
by the drive's sectors/track value), I just added the hidden sector count,
and it worked fine. More importantly, it should work on other drives.
Neat stuff.
Mike Ruskai
thannymeister@yahoo.com
... "...we believe that OS/2 is the OS of the 90's" - Bill Gates, Comdex
___ Blue Wave/QWK v2.20
--- Platinum Xpress/Win/Wildcat5! v3.0pr2
* Origin: FIDO QWK MAIL & MORE! WWW.DOCSPLACE.ORG (1:3603/140)
|