
The printer’s status is stored in location 49601 and the outgoing values are sent to 49296.
Special printer drivers
An even better (but more difficult) way to overcome these problems is to modify the printer driver so that the codes are passed correctly to the printer without any PEEKS or POKES. If you do not want to write such a driver yourself, your computer dealer may be able to help you. Or you may find aid in the pages of a trade journal.
The following printer driver, for instance, was written for the
10 DATA 21E83’7CH7E20FC211100397E32E837C9
20 READ B$:
30 FOR I’=3 TO TJ:N(E\$) STFY 2
40 B-=ASC(MID$( B$, P, 1) ) - 48
50 IF’ IS>9 THEN B-H -- 7
60 T=A:;C(MID$( R$, I’ t 3. r 1.) >
‘70 IF T>9 THF:N T-T - 7 80 POKE A,R*l6 + T
90 A=.At 1
1.00 NEXT P
110 POKE 16422,187
120 POKE 164%3,64
This driver will also work on the
Solutions for Seven-Bit Systems
The BASIC language on some computers can only send seven bits to the printer at one time, even though the machine language may be able to send eight. (The Apple II Plus is a case in point). On such computers, the CHR$ function cannot send the entire range of ASCII codes