home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / AMETHYST / DRIVER.DIF < prev    next >
Text File  |  2000-06-30  |  759b  |  34 lines

  1. /* DRIVER.C        Low-level print driver
  2.  
  3.     Copyright (C) 1981 by Mark of the Unicorn, Inc.
  4.     Created 81.3.18 Gyro
  5.  
  6. This driver implements the calls that CRAYON.C uses, on several printers. 
  7.  
  8. Modifications Schedule:
  9. 08/03/81        -page option by Jeffrey D. Stone
  10.  
  11. */
  12.  
  13. #include "crayon.h"
  14.  
  15. ORdy()                    /* printer ready for character */
  16. {
  17.     if (!stflag) return(TRUE); /* jds */
  18.     if (!oport.statport) return (TRUE);
  19.     return (((oport.sbiosp ? bios (oport.statport) : inp (oport.statport))
  20.             & oport.readymask) == oport.polarity);
  21.     }
  22.  
  23.  
  24. OSend (c)                    /* send char to printer */
  25.     char c;
  26. {
  27.     if (!stflag) return; /* jds */
  28.     c &= oport.datamask;
  29.     if (oport.dbiosp) bios (oport.dataport, c);
  30.     else outp (oport.dataport, c);
  31.     }
  32.  
  33. /* End of DRIVER.C  --  vanilla printer driver */
  34.