bdosptr() MS-DOS System Call
#include <dos.h>
int bdosptr(dosfun,arg,dosal);
int dosfun; function number
void *arg; DX or DS:DX values
unsigned dosal; AL register value
bdosptr() provides direct access to many of the MS-DOS system calls
which require a pointer argument. It invokes the system call
specified by 'dosfun'. 'arg' specifies the value of register DX in
small data models, and the DS:DX values used in large data models.
Returns: The value of AX, if successful. -1 is returned on
failure and 'errno' and '_doserrno' are set.
Notes: In the large data models (compact-, large- and huge-), it
is important to use bdosptr() instead of bdos() for
system calls that require a pointer as the call argument.
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster