Re: printer test
- Posted by Irv <mountains at MINDSPRING.COM> Aug 20, 1997
- 731 views
Michael J Doscher wrote: > > How do you determine if the printer is on line or not ? You can call interrupt 17 (hex) to check printer ready. I can't code this in Euphoria, as my pc is dead at the moment, but here are the details: load AH with $01 -- code to reset printer load DL with $00 -- 0 = LPT1 call interrupt $17 -- printer interrupt load AH with $02 -- code for get printer status load DL with $00 -- LPT1 again call interrupt $17 status returned in AH No guarantees, but this has worked with most pc's I have tried over the past 5-6 years. Irv