home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 2.ddi / CLIB2.ZIP / BDOS.CAS < prev    next >
Encoding:
Text File  |  1990-06-07  |  1.5 KB  |  46 lines

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