home *** CD-ROM | disk | FTP | other *** search
- /*---------------------------------------------------------------------------
- * filename - biosprin.cas
- *
- * function(s)
- * biosprint - printer I/0
- *--------------------------------------------------------------------------*/
-
- /*[]------------------------------------------------------------[]*/
- /*| |*/
- /*| Turbo C Run Time Library - Version 3.0 |*/
- /*| |*/
- /*| |*/
- /*| Copyright (c) 1987,1988,1990 by Borland International |*/
- /*| All Rights Reserved. |*/
- /*| |*/
- /*[]------------------------------------------------------------[]*/
-
- #pragma inline
- #include <bios.h>
-
- /*--------------------------------------------------------------------------*
-
- Name biosprint - printer I/O
-
- Usage int biosprint(int cmd, int byte, int port);
-
- Prototype in bios.h
-
- Description interface to BIOS interrupt 0x17 printer controller
- services.
-
- Return value printer status byte as returned through the AH register
- by interrupt 0x17.
-
- *---------------------------------------------------------------------------*/
- int biosprint(int cmd, int byte, int port)
- {
- RealMode:
- asm mov ah,cmd
- asm mov al,byte
- asm mov dx,port
- asm int 17h
- Exit:
- return _AH;
- }
-