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

  1. /*---------------------------------------------------------------------------
  2.  * filename - bioscom.cas
  3.  *
  4.  * function(s)
  5.  *      bioscom - communications I/O
  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.  
  19. #pragma inline
  20. #include <bios.h>
  21.  
  22. /*--------------------------------------------------------------------------*
  23.  
  24. Name        bioscom - communications I/O
  25.  
  26. Usage        int bioscom(int cmd, char byte, int port);
  27.  
  28. Prototype in    bios.h
  29.  
  30. Description    direct interface to BIOS interrupt 0x14
  31.  
  32. Return value    value return to the AX register for the function specified
  33.         by cmd.
  34.  
  35. *---------------------------------------------------------------------------*/
  36. int bioscom(int cmd, char byte, int port)
  37. {
  38. asm    mov    ah, cmd
  39. asm    mov    al, byte
  40. asm    mov    dx, port
  41. asm    int    14h
  42.  
  43. return( _AX );
  44. }
  45.