Path: utzoo!yunexus!maccs!cs3b3aj From: cs3b3aj@maccs.McMaster.CA (Stephen M. Dunn) Newsgroups: comp.lang.pascal Subject: Re: TurboPascal printer problem... Summary: A simpler way Keywords: printer status bios interrupt Message-ID: <2464@maccs.McMaster.CA> Date: 20 Apr 89 23:36:53 GMT Article-I.D.: maccs.2464 References: <687@tekno.chalmers.se> <527@infohh.rmi.de> Reply-To: cs3b3aj@maccs.UUCP (Stephen M. Dunn) Organization: McMaster U., Hamilton, Ont., Can. Lines: 23 In article <527@infohh.rmi.de> natec@infohh.rmi.de (NATEC Institut GmbH) writes: > >test your printer status [large subprogram deleted] Why not just call int 17h, function 02h? This returns the printer status. Call with DX=printer number (0=LPT1, etc) Returns in AH: bit 7: printer not busy bit 6: acknowledge bit 5: out of paper bit 4: printer selected bit 3: I/O error bit 2: unused bit 1: unused bit 0: timed-out These are the meanings when the bits are set. I don't know what happens if your printer is hooked up to your serial port; perhaps you could then use the int 14h functions to check its status. -- ====================================================================== ! Stephen M. Dunn, cs3b3aj@maccs.McMaster.CA ! DISCLAIMER: ! ! This space left unintentionally blank - vi ! I'm only an undergrad ! ======================================================================