Interrupt 17h Printer(0:005Ch) access the parallel printer(s)
AH is changed. All other registers left alone.
Function 00h Print Character/send AL to printer DX (0, 1, or 2)
entry AH 00h
AL character
DX printer to be used (0,1,2)
return AH status byte
bit
0 time out
1 unused
2 unused
3 I/O error
4 selected
5 out of paper
6 acknowledge
7 not busy
Function 01h Initialize Printer - set init line low, send 0Ch to printer DX
entry AH 01h
DX printer port to be initialized (0,1,2)
return status as below
Function 02h Printer Status - read status of printer DX into AH
entry AH 02h
DX printer port to be used (0,1,2)
return AH bit flags bit 7 0 = printer is busy
bit 6 ACKnowledge line state
bit 5 out-of-paper line state
bit 4 printer selected line state
bit 3 I/O error
bit 2 unused
bit 1 unused
bit 0 time-out error