Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Peter Norton Programmer's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Service 02H (decimal 2) reports the printer status in the AH register. The
  individual bit codes are shown in Figure 12-15.

  The printer time-out has caused some difficulty in the IBM personal
  computers. Any I/O driver needs to set a time limit for a response from
  the device being controlled. Ideally, this time limit should be short
  enough to ensure that an unresponsive device can be reported in a timely
  manner. Unfortunately, one normal printer operation can take a
  surprisingly long time: a page eject ("skip to the top of the next page").
  The time allowed varies from version to version of the ROM BIOS. Treat a
  time-out signal with care.

        Bit
  7 6 5 4 3 2 1 0          Meaning (when set to 1)
  --------------------------------------------------------------------------
  1 . . . . . . .          Printer not busy (0 = busy)
  . 1 . . . . . .          Acknowledgment from printer
  . . 1 . . . . .          Out-of-paper signal
  . . . 1 . . . .          Printer selected
  . . . . 1 . . .          I/O error
  . . . . . 1 . .          Not used
  . . . . . . 1 .          Not used
  . . . . . . . 1          Time-out
  --------------------------------------------------------------------------

  Figure 12-15.  The printer status bits reported in the AH register by
  services 00H, 01H, and 02H.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson