home *** CD-ROM | disk | FTP | other *** search
- /*---------------------------------------------------------------------------
- * filename - bdos.c
- *
- * function(s)
- * bdos - MS-DOS system call
- *--------------------------------------------------------------------------*/
-
- /*[]------------------------------------------------------------[]*/
- /*| |*/
- /*| Turbo C Run Time Library - Version 3.0 |*/
- /*| |*/
- /*| |*/
- /*| Copyright (c) 1987,1988,1990 by Borland International |*/
- /*| All Rights Reserved. |*/
- /*| |*/
- /*[]------------------------------------------------------------[]*/
-
- #pragma inline
- #include <dos.h>
- #include <asmrules.h>
- #include <conio.h>
- #include <stdio.h>
-
- /*--------------------------------------------------------------------------*
-
- Name bdos - MS-DOS system call
-
- Usage int bdos(int dosfun, unsigned dosdx, unsigned dosal);
-
- Prototype in dos.h
-
- Description provides direct access to the MS-DOS system calls which
- require an integer argument.
-
- Return value the return value of AX set by the system call.
-
- *---------------------------------------------------------------------------*/
- int _CType bdos(int dosfn, unsigned dosdx, unsigned dosal)
- {
- asm mov ah, dosfn
- asm mov al, dosal
- asm mov dx, dosdx
- asm int 21h
- return(_AX);
- }
-