home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
601-625
/
apd617
/
len_tucker
/
printerstate.amos
/
printerstate.amosSourceCode
Wrap
AMOS Source Code
|
1986-08-03
|
297b
|
11 lines
' works on classic & easy
_PRINTERSTATE
OK=Param
Print OK
Procedure _PRINTERSTATE
H=Peek($BFD000)
H$=Hex$(H)
If H$="$FF" or(H$="$FB") Then N=1 : Rem "Paper is out or not on"
If H$="$FC" Then N=2 : Rem "Printer is on line"
If H$="$FD" or(H$="$F9") Then N=3 : Rem "Printer is off line"
End Proc[N]