Re: printer test

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu