LPTMON version 1.0 By Celso Minnitti Jr. Public domain software. Copy freely. LPTMON10.ZIP has these files: ÉÍÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÍ» ³ LPTMON.ASM 8086 Assembly language source code ³ ³ LPTMON.COM Executable program ³ ³ LPTMON.DOC This document ³ ³ L.BAT Batch to compile and link LPTMON.ASM ³ ÈÍÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄͼ Introduction ÄÄÄÄÄÄÄÄÄÄÄÄ LPTMON is a Terminate and Stay Resident (TSR) program that will display the values of the ports 378h (data port), 379h (status port), 3FAh (control port), and how many times an IRQ7 has been occured so the user can monitor a printer at LPT1. I am including the full source code of LPTMON so you can change it as you like. Port 378h printer data output ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ³7³6³5³4³3³2³1³0³ ³ ³ ³ ³ ³ ³ ³ ÀÄÄÄÄ data bit 0, hardware pin 2 ³ ³ ³ ³ ³ ³ ÀÄÄÄÄÄ data bit 1, hardware pin 3 ³ ³ ³ ³ ³ ÀÄÄÄÄÄÄ data bit 2, hardware pin 4 ³ ³ ³ ³ ÀÄÄÄÄÄÄÄ data bit 3, hardware pin 5 ³ ³ ³ ÀÄÄÄÄÄÄÄÄ data bit 4, hardware pin 6 ³ ³ ÀÄÄÄÄÄÄÄÄÄ data bit 5, hardware pin 7 ³ ÀÄÄÄÄÄÄÄÄÄÄ data bit 6, hardware pin 8 ÀÄÄÄÄÄÄÄÄÄÄÄ data bit 7, hardware pin 9 Port 379h printer status register ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ³7³6³5³4³3³2³1³0³ ³ ³ ³ ³ ³ ³ ³ ÀÄÄÄÄ 1 = time-out ³ ³ ³ ³ ³ ÀÄÁÄÄÄÄÄ unused ³ ³ ³ ³ ÀÄÄÄÄÄÄÄÄ 1 = fault, pin 15 ³ ³ ³ ÀÄÄÄÄÄÄÄÄÄ 1 = on-line, pin 13 ³ ³ ÀÄÄÄÄÄÄÄÄÄÄ 1 = paper end (out of paper), pin 12 ³ ÀÄÄÄÄÄÄÄÄÄÄÄ 0 = Acknowledge, pin 10 ÀÄÄÄÄÄÄÄÄÄÄÄÄ 0 = busy, pin 11 Port 37Ah printer control register ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ³7³6³5³4³3³2³1³0³ ³ ³ ³ ³ ³ ³ ³ ÀÄÄÄÄ 1 = output data to printer, pin 1 ³ ³ ³ ³ ³ ³ ÀÄÄÄÄÄ 1 = auto line feed, pin 14 ³ ³ ³ ³ ³ ÀÄÄÄÄÄÄ 0 = initialize printer, pin 16 ³ ³ ³ ³ ÀÄÄÄÄÄÄÄ 1 = select input, pin 17 ³ ³ ³ ÀÄÄÄÄÄÄÄÄ 0 = IRQ disable,1=IRQ enable for ACK ÀÄÁÄÁÄÄÄÄÄÄÄÄÄ unused Signal Name 25-Pin Connector Description ÄÄÄÄÄÄÄÄÄÄÄ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Strobe 1 Output signal indicating the eight data lines can be read Data bit 0-7 2-9 Five volts = logical one Zero volts = logical zero Acknowledge 10 Input signal indicating data received Busy 11 Input signal indicating do NOT transmit Paper end 12 Input signal indicating printer is out of paper On-line 13 Input signal indicating printer is on-line, ready to receive Auto line feed 14 Output signal selecting the line-feed option. If the signal is low, the printer is commanded to automatically feed one line when it detects a carriage return; If the signal is high, an explicit line-feed character is required Fault 15 Input Status indicating an error Initialize printer 16 Output signal resetting the printer to its default operating parameters Select input 17 Output signal to switch the printer on and off line Ground 18-25 Ground How to contact the Author ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ If you have any comments or suggestions about LPTMON you can reach me at 617-235-4018 or write to: Celso Minnitti Jr 139 Linden St Wellesley, MA 02181