L

0 000 1011 = ll(decimal)

Descender Starting Ending
date print column print column
Figure 6-10. The attribute byte-(M) for our flask character.
You’ll probably recognize ml . ..mll from the top of our
layout grid. That’s right, each column is described by one byte.
Now we’ve got everything we need to download one character
to the printer. The complete command for our flask character is
shown below:
CHR$(27);CHR$(38);CHR$(O);CHR$(GO);CHR$(6O);CHR$(l39)
;CHR$(2);CHR$(5);CHR$(8);CHR$(241);CHR$(O);CHR$(O)
;CHR$(241);CHR$@);CHR$(5);CHR$(2);CHR$(O)
Now let’s send the information to the printer. The following
program will send the character definitions for all three
characters to the printer. Turn off the printer and set DIP
switch 2-l off. Then turn on the printer. Enter the program and
run it.
10 LCRINT CHR$(27);"&";CHR$(O);CHR$(60);CHR$(62);
20 FOR N=60 TO 62
30 FOR M=O TO 11
40 READ MM
50 LPRINT CHR$(MM);
60 NEXT M
70 NEXT N
80 LPRINT
90 END
100 DATA 139, 2, 5, 8,241, 0, 0,241, 8, 5,
2, 0
110 DATA 139,124, 0, 66, 4, 64, 36, 16, 2, 16,
12, 0
120 "@A 139, 46, 16, 2, 60, 0, 48, 0, 48, 0,
9 0
When you run this program, it looks like nothing happens.
That’s OK. We’ll see why in just a moment. Save this program.
We’ll need it again shortly.