There is another way of circumventing the ASCII 9. The OUT command sends information directly to the printer without going through the MBASIC operating system. A sample program which performs this OUT routine is shown below. The program is meant to be a subroutine that sends a 9 to the printer whenever it is called.

500 IF INP(21) AND &H20 THEN 50 : REM check printer status

510 OUT 20,9 : REM send a nine out printer port

520 OUT 23,0 : REM toggle strobe signal off

530 OUT 23,1 : REM toggle strobe signal on

540 RETURN

94