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

  1. /*---------------------------------------------------------------------------
  2.  * filename - biosprin.cas
  3.  *
  4.  * function(s)
  5.  *        biosprint - printer I/0
  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            biosprint - printer I/O
  23.  
  24. Usage           int biosprint(int cmd, int abyte, int port);
  25.  
  26. Prototype in    bios.h
  27.  
  28. Description     interface to BIOS interrupt 0x17 printer controller
  29.                 services.
  30.  
  31. Return value    printer status byte as returned through the AH register
  32.                 by interrupt 0x17.
  33.  
  34. *---------------------------------------------------------------------------*/
  35. int biosprint(int cmd, int abyte, int port)
  36. {
  37. RealMode:
  38. asm     mov     ah,cmd
  39. asm     mov     al,abyte
  40. asm     mov     dx,port
  41. asm     int     17h
  42. Exit:
  43.         return  _AH;
  44. }
  45.