Star Micronics Delta Next M, Figure Y-10. The attribute byte n2 for our heart character

Models: Delta

1 110
Download 110 pages 20.25 Kb
Page 94
Image 94

82

Delta User’s Manual

Figure Y-10. The attribute byte (n2) for our heart character.

You’ll probably recognize ml. . .mll from the top of our lay-

 

-

 

 

out 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 heart character is shown

 

 

in Figure 7-11.

 

 

 

 

 

 

 

-

 

CHR$(27) CHR$(42) CHR$(I)

CHR$(72) CHR$(ll)

CHR$(4)

 

 

 

 

Escape

*

1

n,

n2

ml

 

 

--

 

 

 

 

 

CHR$(lO)CHR$(2O)CHR$(IO)CHR$(52)CHR$(72)

 

 

 

 

 

m2

4

m4

m5

3

 

 

 

 

 

CHR$(52)CHR$(lO)CHR$(20)CHR$(lO) CHR$(4)

 

 

 

 

 

m,

me

m,

9,

ml,

 

 

 

 

Figure

 

 

 

.

.

.

-.

 

-

7-11.This is the complete command to send our heart character to the JJelta

 

printer.

-

Now let’s send the information to the printer. The following program will send the character definitions for all four characters to the printer. Enter the program and run it.

10 FOR I=1 TO 4

2@ LPRINTCHR$(27)"*" CHR$(l);

39READ Nl,N2

4p LPRINTCHR$(Nl)CHR$(N2); 5pI FOR M=l TO 11

69READ Ml

70LPRINTCHR$(Ml);

80NEXT M

90NEXT

-

-.

-

-

Page 94
Image 94
Star Micronics Delta user manual Next M, Figure Y-10. The attribute byte n2 for our heart character