Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.pc » DOS 1.0 Random-Disk-Access FUNCTION CALLS: has anyone used these??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
DOS 1.0 Random-Disk-Access FUNCTION CALLS: has anyone used these?? [message #70952] Thu, 23 May 2013 23:37
ijk is currently offline  ijk
Messages: 20
Registered: May 2013
Karma: 0
Junior Member
Message-ID: <415@houxt.UUCP>
Date: Fri, 8-Jun-84 13:51:06 EDT
Article-I.D.: houxt.415
Posted: Fri Jun  8 13:51:06 1984
Date-Received: Sat, 9-Jun-84 08:12:09 EDT
Organization: ATT Information Systems, Holmdel NJ
Lines: 25

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).
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Spelling Checker Query
Next Topic: Floppy Disks
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Mar 28 19:06:48 EDT 2024

Total time taken to generate the page: 0.07560 seconds