Download Print this page

Epson MX-80 User Manual page 25

Hide thumbs Also See for MX-80:

Advertisement

CHR$(14) stands for:
print DOUBLE WIDTH.
Everybody back to look at Appendix B. It contains all the special codes, often
called CONTROL CODES. The ASCII code number we need to use to print
(or do) what we want is shown on the same line with its explanation.
It's important to note that not all codes actually print on either the screen or
the Printer. Most special or "control" codes don't really PRINT anything,
even tho we must precede them with an LPRINT t o "push them down the
line" to the Printer. It's just the means to the end.
For example, type the following at the command level:
L P R I N T C H R $ ( 1 4 ) ; " H E L L O
THERE"
and see the words appear in double width (not double spaced).
H E L I
O
T H E R E
Figure 2-4
LLIST the program again. Notice that the double width feature is no longer
switched on. The message —
EACH TIME WE WISH TO PRINT SOMETHING IN THE DOUBLE
WIDE MODE, WE MUST PRECEDE IT WITH CHARACTER CODE 14.
When that line is finished printing, the double width feature is automatically
turned off. It's the only "control code" we have with a special automatic
shut-off feature.
Now that we understand line 20, let's add it in and RUN our 2 line program.
2 0
L P R I N T T A B ( 2 2 ) ; C H R $ ( 1 4 ) ; " M X - 8 0 "
G R E E T I N G S
FROM T H E
V E R S A T I L E
M X
S O
Figure 2-5
Pretty nice -
eh? If you wish, do another LLIST to feel confident that
DOUBLE WIDTH really got switched off.

Advertisement

loading