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

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