Star Micronics NX-15 LPRINTCHR$27 “6”, LPRINTCHR$218CHR$196 CHR$196CHR$196 CHR$196CHR$196CHR$191

Models: NX-15

1 210
Download 210 pages 57.72 Kb
Page 94
Image 94
10 LPRINTCHR$(27) ; “6”;

86

So how are all of these characters used? Here is a program that demonstrate how the graphics characters can be combined to create a figure: the 5 of clubs.

10 LPRINTCHR$(27) ; “6”;

20LPRINTCHR$(218);CHR$(196) ;CHR$(196);CHR$(196); CHR$(196);CHR$(196);CHR$(191)

30LPRINTCHR$(179);CHR$(53);CHR$(32) ;CHR$(32); CHR$(32);CHR$(32);CHR$(179)

40LPRINTCHR$(179);CHR$(~2);CHR$(5);CHR$(32);

CHR$(5);CHR$(32);CHR$(179)

50LPRINTCHR$(179);CHR$(32);CHR$(32) ;CHR$(5);

CHR$(32);CHR$(32);CHR$(179)

60LPRINTCHR$(179);CHR$(32);CHR$(5) ;CHR$(32); CHR$(5);CHR$(32);CHR$(179)

70LPRINTCHR$(179);CHR$(32);CHR$(32) ;CHR$(32); CHR$(32);CHR$(53);CHR$(179)

80LPRINTCHR$(192);CHR$(196);CHR$(196);CHR$(196); CHR$(196);CHR$(196);CHR$(217)

90LPRINTCHR$(27);”7”

Ifyouhave a7-bit interface, add the followinglinestothe pro- gram given above:

15LPRINTCHR$(27);’’>”;

95 LPRINTCHR$(27);”=”

In this program, line 10 selects characterset#2so thatall the graphics characters can be used (including the ’’club’’symbol).

Then lines20 - 80printthe50f clubs figure. Line 90 cancels character set #2 (which is the same as selecting character set #l).

Page 94
Image 94
Star Micronics NX-15 LPRINTCHR$27 “6”, LPRINTCHR$218CHR$196 CHR$196CHR$196 CHR$196CHR$196CHR$191, LPRINTCHR$27”7”