Building Symbols From A Small Core Set - Epson FX-80 User Manual

Hide thumbs Also See for FX-80:
Table of Contents

Advertisement

Building Symbols &om a Small Core Set
Combining user-defined characters is a great way to create fre-
quently used logos or fancy headings. But as you saw, defining an
entire alphabet of oversized letters uses up ASCII codes rather quickly.
Fortunately, there is an alternative. In some cases, you may be able
to define a handful of "core" characters that could be combined to
make any letter in the alphabet. This requires a bit of imagination; we
present an example here to lubricate those creative gears.
Prepare for the program changes by deleting lines 20, 40, 50, and
100 to 540. Now change:
6~
LPRINT
CHR$(27)"&"CHR$(~)"16";
7~
FOR Y=l TO 6: LPRINT CHR$(139);
9~
NEXT Y
Deleting line 20 ensures that the printer does not download the ROM
characters. That makes your defined characters the only ones
around-no funny stuff on the printer. Here is the data:
1~~
I
Six Characters
11~
DATA
7,8,16,~,32,3,68,~,72,~,73
12~
DATA
73,~,72,~,68,3,32,~,16,8,7
13~
DATA
73,~,9,~,17,96,2,~,4,8,112
14~
DATA
112,8,4,~,2,96,17,~,9,~,73
15~
DATA
127,~,~,~,~,127,~,~,~,~,127
16~
DATA 73,73,73,73,73,73,73,73,73,73,73
That's right, there are only six characters, but it is a very powerful set
of characters. With them, you can print an entire alphabet and more!
To see the 'Magnificent Six," type:
18~
LPRINT "1 2 3 4 5 6"
2~~
LPRINT CHR$(27)"@": STOP
You want more excitement? Okay, try printing them in a different
order. Type:
221

Advertisement

Table of Contents
loading

Table of Contents