biosprint()              Printer I/O
 
 include    <bios.h>
 
 int        biosprint(cmd,byte,port);
 int        cmd;                         Operation to perform
 int        byte;                        Byte value
 int        port;                        Port
 
    biosprint() performs various printer functions on the printer
    identified by 'port'.
 
    'cmd' specifies one of the following operations to be performed:
 
                0   Print the character in 'byte'
                1   Initialize the printer port
                2   Read the printer status
 
    The value of 'byte' can be 0 to 255.
 
    A 'port' value of 0 corresponds to LPT1, a 'port' value of 1
    corresponds to LPT2, etc.
 
    Returns:    The current printer status composed by ORing these bit
                values together:
 
                    0x01 Device time out
                    0x08 I/0 error
                    0x10 Selected
                    0x20 Out of paper
                    0x40 Acknowledge
                    0x80 Not busy
 
                If 'cmd' is set to 0, a return value of 'device time out'
                indicates an output error.

This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster