Download Print this page

Epson MX-80 User Manual page 31

Hide thumbs Also See for MX-80:

Advertisement

- Send It A Message
- -
J
J
Testing, Testing
What happened to the size of all our characters after we went COMPRESSED?
Uhmm-hmmm. It goofed up the TAB. If size is now "normal", the TABs in
lines 10 and 20 should also act "normal". If we RUN the program again . . .
let's try it.
< 3
G R E E T I N G S
FROM T H E
V E R S A T I L E
M X —
© O
B Y E P S O N
Z 5
Y O U ' L L
L I K E
M E !
Figure 2-12
There it is! CHR$(15) means COMPRESSED ON, and CHR$(18) is its
opposite.
One more step. Line 60 resets the " G " switch. As we've seen repeatedly over
many RUNs, the printhead is printing everything twice. We need to turn off
the DOUBLE STRIKE to restore the Printer to the same condition as when
we began this folly. It's a common-sense principle to follow in all our pro-
gramming with this sophisticated Printer. Add line 60:
6 0
L P R I N T C H R $ ( 2 7 ) C H R $ ( 7 2 )
)
1
J
Figure 2-13
. . . and RUN, watching the printhead.
Well, why did it print the last line twice? Wasn't it supposed to shut off the
double-strike? But it DID shut it off, after the entire program had been
printed. Think of some way to prove that claim.
An easy way is to just LIST the program. LLIST it.
1 0 L . P R I N T T A B ( 1 3 ) ; " G R E E T I N G S
FROM T H E
V E R S A T I L E "
2 0
L P R I N T T A B ( 2 2 ) ; C H R $ ( 1 4 ) ; " M X - 8 0 "
3 0
L P R I N T T A B ( 4 0 ) C H R $ ( 1 5 ) " B Y " C H R $ ( 1 4 ) C H R $ ( 2 7 ) C H R $ ( 7 1 ) "
E P S O N "
4 0
L P R I N T T A B ( 3 6 ) C H R * ( 1 9 8 )
+ S T R I N G * ( 1 8 , 2 1 1 )
+
C H R * ( 1 8 5 )
5 0
L P R I N T
:
L P R I N T T A B ( 2 0 ) C H R $ ( 1 8 ) " Y O U ' L L
L I K E
M E ! "
6 0
L P R I N T C H R * ( 2 7 ) C H R $ ( 7 2 )
Figure 2-14
33

Advertisement

loading