Star Micronics Radix User Manual page 141

Table of Contents

Advertisement

Creatine Your Own Characters
127
In the program that follows, we've used this technique to cre-
ate some large numbers. Each digit is actually made up of four
characters-two
horizontally by two vertically. This means, of
course, that you must define and print four characters for each
finished digit. We assigned the upper left quadrant of each digit to
ASCII codes from
160
to
169,
the upper right quadrant to codes
170 to 179, and so on. Figure 11-15 shows how one digit is defined,
and Figure
11-16
shows the final output of our program.
Figure 11-15. Each digit is made
up
offour individual characters.
18 'Program to define and print BIG numerals.
2pl 'Each numeral is made up of four characters,
3@
'two wide, and two high.
49 'A blank is also defined.
59 '
6pl
'Download the 41 special characters.
79 OPEN "LPTl:" AS #l : WIDTH
#1,255
Spl
FOR Nl =
16pl
TO 2pIpl IN1 is the char code.
98
PRINT #l,CHR$(27) "*" CHR$(l) ;
l@@ PRINT #l,CHR$(Nl);
llg READ N2
129 PRINT #l,CHR$(N2);

Advertisement

Table of Contents
loading

Table of Contents