[net.micro.pc] DOS 1.0 Random-Disk-Access FUNCTION CALLS: has anyone used these??

ijk@houxt.UUCP (06/08/84)

I'm trying to work my way through all the DOS function calls.  I've
successfully set up FCB's to access the disk, and done sequential
writes and read (so I think I know what I'm doing).  But when I
try to use functions hex 21-23, I run into wierd problems.  The way
I interpret these calls is that I use the random field, bytes 33-36,
to indicate which record i want, with bytes 33 & 34 being the low
part.  Since I've declared a structure, with each of pair of bytes
as a word, the byte ordering is  correct (I've even checked with debug).
Anyway, the way I interpret this field is that I indicate which record
I want, and the function call converts this relative record into
a block and record number.  When the function call returns, HOWEVER,
the current relative record (within block)is ALWAYS 0, and the block number
is ALWAYS TWICE the random record field; furthermore, I don't even access
the record referenced by that block/record value!!!! (I can tell, since
I've filled each record with a different pattern).  If anyone has
used these functions successfully, please let me know.  I'll gladly
send you code excerpts.
THANX!!!!!!!!!!!!!!!!!!!!!!!!
Ihor Kinal
houxt!ijk
P.S.  I'm running under DOS 2.0, if that makes a difference.  Since all
of the other disk routines from 1.0 seem to work, I cannot imagine
that these were discontinued (but who knows for sure???).  Yes, I know
I can use 2.0 function calls (I've already done so; now, I want to 
play with these).