Int 17h, 02h Get Printer Status
Returns status information about the specified parallel printer.
Entry AH = 02h
DX = Parallel printer number (0 = LPT1, 1 = LPT2, etc.)
Return AH = Printer status
──────────────────────────────────────────────────────────────────
Printer Status (AH)
7 6 5 4 3 2 1 0
x . . . . . . . Printer not busy (0=busy)
. x . . . . . . Acknowledgement from printer
. . x . . . . . Out of paper
. . . x . . . . Printer selected
. . . . x . . . I/O error
. . . . . 0 0 . Not used
. . . . . . . x Time-out error