home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 1.ddi / CLIBSRC.ZIP / BDOS.CAS < prev    next >
Encoding:
Text File  |  1992-06-10  |  1.1 KB  |  43 lines

  1. /*---------------------------------------------------------------------------
  2.  * filename - bdos.cas
  3.  *
  4.  * function(s)
  5.  *        bdos - MS-DOS system call
  6.  *--------------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1987, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #pragma inline
  18. #include <dos.h>
  19. #include <asmrules.h>
  20.  
  21. /*--------------------------------------------------------------------------*
  22.  
  23. Name            bdos - MS-DOS system call
  24.  
  25. Usage           int bdos(int dosfun, unsigned dosdx, unsigned dosal);
  26.  
  27. Prototype in    dos.h
  28.  
  29. Description     provides direct access to the MS-DOS system calls which
  30.                 require an integer argument.
  31.  
  32. Return value    the return value of AX set by the system call.
  33.  
  34. *---------------------------------------------------------------------------*/
  35. int _CType _FARFUNC bdos(int dosfn, unsigned dosdx, unsigned dosal)
  36. {
  37. asm     mov     ah, dosfn
  38. asm     mov     al, dosal
  39. asm     mov     dx, dosdx
  40. asm     int     21h
  41.         return(_AX);
  42. }
  43.