home *** CD-ROM | disk | FTP | other *** search
- var status : integer;
- Ch : Char;
- begin
- Clrscr;
- status := port[$3bd];
- status := status and $f8;
- status := status xor $48;
- gotoxy(1,2);
- writeln('Printer status = ',status);
- write('Initialize Printer? (Y/N)');
- readln(con,Ch);
- If UpCase(CH) = 'Y' then
- Begin
- portw[$3be] := 8;
- delay(1000);
- portw[$3be] := $0c;
- status := port[$3bd];
- status := status and $f8;
- status := status xor $48;
- Writeln('Printer initialized - New status = ',status);
- end;
- end.
-