Dec 082017
 
Absolute read/write ASM functions for all DOS versions including PC-DOS 4.0 and Compaq 3.31's Big Drive support.
File ABRD40.ZIP from The Programmer’s Corner in
Category Assembly Language
Absolute read/write ASM functions for all DOS versions including PC-DOS 4.0 and Compaq 3.31’s Big Drive support.
File Name File Size Zip Size Zip Type
ABSINST.BAT 1400 538 deflated
ABSMAKE.BAT 395 155 deflated
ABSREAD.C 4003 881 deflated
ABSREAD.OBC 576 420 deflated
ABSREAD.OBH 616 432 deflated
ABSREAD.OBL 583 430 deflated
ABSREAD.OBM 581 429 deflated
ABSREAD.OBS 574 419 deflated
README.TXT 1502 761 deflated
TPCREAD.ME 199 165 deflated

Download File ABRD40.ZIP Here

Contents of the README.TXT file



Written by: Christopher Blum CompuServe 76625,1041
1022 East Wayne Avenue
Wooster, Ohio 44691

This set of object modules replaces the absread and abswrite functions
of Turbo C 2.0 with updated functions supporting all versions of DOS
including Compaq 3.31 and DOS 4.x using partitions greater than 32MB.

Batch file ABSINST.BAT will update the libraries for all memory models.

Source is included in file ABSREAD.C ( contains inline assembler )
which may be compiled with batch file ABSMAKE.BAT

Include file DOS.H must be changed to make the prototypes agree with
the new functions as follows:

int _Cdecl absread (int drive, int nsects, long lsect, void *buffer);
****

int _Cdecl abswrite(int drive, int nsects, long lsect, void *buffer);
****

Note that the sector number parameter is now a long - this may affect
current programs that you recompile. Although Turbo C extends int
arguments to long for you because of the prototype, some values ( i.e.
over 32767 ) are not extended properly if the variable in the call is
a signed int. Using an unsigned int should remedy that. Obviously, to
properly access large ( > 32 MB ) partitions, you must use a long in
the call. These considerations only apply to programs which execute
under Compaq DOS 3.31 and DOS 4.x control. Programs executing under
DOS 3.30 and previous versions are unaffected.


 December 8, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)