We’ll be discussing proportional character widths in detail later in this chapter; for now, we’ll leave it at 11. The descender data was discussed earlier: to use the top eight pins, this bit should be 1; to use the bottom eight pins this bit should be 0. Figure
0 000 1011 = Il(decimal) 1
Descender StartingEnding
data print column print column
Figure 9-10. The attribute byte (m0) 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 with the STAR mode is shown in Figure 9-l 1.
CHR$(27)CHR$(42)CHR$(l)CHR$(l6~)CHR$(l6~)CHR$(l~~)
Escape *1 nl n2
CHR$(2)CHR$(5)CHR$(8)CHR$(241)CHR$(!@CHR$(@.)
ml m2 m3 m4 m5 m6
CHR$(24l)CHR$(8)CHR$(5)CHR$(2)CHR$('ij)
m7 m8 m9 ml0 ml1
.
Figure 9-11. This is the complete command to send our flask character to the SR-lo/15 printer.
Now let’s send the information to the printer. But, before you send the information, be sure that the DIP switch
printer. Enter the program and run it. ~-
90