Download Print this page

Epson MX-80 User Manual page 34

Hide thumbs Also See for MX-80:

Advertisement

Chapter 9
and RUN.
D O U B L E
W I D T H
C H A R A C T E R S
A D D
E I M F = - H S
I
S
!
Figure 3-1
Note carefully in lines 20 and 30 where the spaces are positioned. Now study the
spaces in the print-out. When a space is placed after an ASCII 14 (double width),
that space prints as 2 spaces. If placed after ASCII 20 (single width), it takes up
only a single space.
Don't forget, double WIDTH mode is automatically turned off at the end of each
line, even if that line ends with a semicolon (;). (The program in the last chapter
demonstrated that rule.) If we want to print a long line consisting entirely of
double width characters, every program line holding a part of that message must
have its own CHR$(14).
2 Ways Down, 2 to Go
Let's switch from the traditional 80/40 combination we used above (80 Charac-
ters Per Line — 40 CPL in double width) to Compressed mode. Type this directive
at the command level:
< w
> L P R I N T
C H R $ ( 1 5 )
then RUN.
D O U B L E
WIDTH CHARACTERS ADD
E M P H A S I S ?
Figure 3-2
Very nice! CHR$(15) shifted the Printer into COMPRESSED mode - 132 CPL.
Our program lines 2 0 and 30 tell it to print the words DOUBLE and EMPHASIS
in DOUBLE WIDTH. Half of 132 is 66, so those words are printed at 66 CPL and
the rest at 132 CPL. It all really makes sense, doesn't it.
Now let's RUN the program again.
D O U B L E
WIDTH CHARACTERS ADD
E M P H A S I S !
Figure 3-3
Hmmm. Same thing. Why did it stay in the compressed mode? We didn't send
another ASCII 1 5 down the line.
'link back to the last Chapter. Double Width reverts to Normal Width at the end
each program line. (It's the only printing command that has automatic shut-
off.) Compressed mode stays switched in until we send an ASCII 18, or turn the
printer off. If we want to change modes, we have to say so.
36

Advertisement

loading