I
PRINTING DOWNLOAD CHARACTERS
You’ve now defined and sent three characters to your printer.
But how do you know that? If you try printing those characters
now you don’t get a flask, car and gun. Instead you get . . ( = ).
That’s because the download characters are stored in a different
part of the printer’s memory. To tell it to look in download
character RAM instead of standard character ROM it requires
another command:
(ESC)“%“CHR$(n);CHR$(O)
This command is used to select the download character set (if
n=49) or to select the standard character set (if n =48). Let’s
try it out. Enter this program:
10 LPRINT CHR$(27>;"%1";CHR$(O);
20 LPRINT CHR$(6O>;CHR$(61>;CHR$(62)
30 LPRINT CHR$(27>;"%O";CHR$(O)
40 END
Voila! It should have printed out the three characters we defin-
ed. Your printout should look like this:
(If it doesn’t, check the last program we ran for errors, then
rerun it.)
Let’s find out if there are any other characters in the
download RAM. Try this program:
10 LPRINT CHR$(27);"%1";CHR$(O)
20 FOR I=32 TO 126
2; ;;X";N; U-W(I);
50 LPRINT
60 FOR I=160 TO 254
'7; g;;"; CHR$(I);
90 LPRINT
100 LPRINT CHR$(27);"%O";CHR$(O)
110 END