5525B/31/32 Line Matrix Printer LinePrinter Plus Programmer's Reference

Bit Image Sample Program
147
Data that go past the right margin are discarded if automatic line feed is
disabled. If automatic line feed is enabled, data that go past the right margin
trigger an automatic line feed (LF) and are printed on the next line.
Bit Image Sample Program
The program below, written in BASIC, produces the single density bit image
pattern shown in Figure 6. The 7-byte pattern is repeated 40 times.
Depending on the host computer system, it may be necessary to add a width
statement to the BASIC program.
10 WIDTH “LPT1:”, 255
20 LPRINT “Single Density Bit Image Graphics”
30 LPRINT CHR$(27);“K”;CHR$(24);CHR$(1);
40 FOR N=1 TO 40
50 RESTORE
60 FOR I=1 TO 7
70 READ R
80 LPRINT CHR$(R);
90 NEXT I
100 NEXT N
110 DATA 73, 146, 36, 255, 36, 146, 73
120 LPRINT
Figure 6. Sample Single-Density Bit Image Graphics