Star Micronics NB-15 Printer User Manual


 
99
When you run this program, it looks like nothing happens.
That’s OK. We’ll see why in just a moment. Save this program.
We’ll need it again shortly.
PRINTING DOWNLOAD CHARACTERS
You’ve now defined and sent two characters to your printer.
But how do you know that? If you try printing those characters
now you don’t get a car and telephone. 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) ;“%l”;CHR$(O) ;
20 LPRINT CHR$(60);CHR$(61);
30 LPRINT CHR$(27) ;“$O”;CHR$(O) ;
40 END
Voila! It should have printed out the two 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
30 LPRINT CHR$(I);
40 NEXT I