Epson LX-90TM Installation Manual Page 35

  • Download
  • Add to my manuals
  • Print
  • Page
    / 59
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 34
Multiple-Line Program
Here is a program that shows you how the HomeWriter- com-
bines several lines of graphics for a figure taller than seven dots.
Start with a short program that prints two patterns alternately for
100 columns. Since there are two pin patterns in the loop, it needs to
be executed only 50 times.
NEW
10 OPEN4,4
30
PRINT#4,CHR$(8);
40
FOR X=1 TO
50
50 PRINT#4,CHR$(213)CHR$(170);
60
NEXT X
70 PRINT#4
120
CLOSE4
If you run the program now, you’ll see how one line of the pattern
looks:
To see how several lines combine to form a figure, change lines 60
and 70 and add lines 20 and 80-110 to the previous program to pro-
duce the program below.
10 OPEN4,4
20
FOR R=1 TO
3
30
PRINT#4,CHR$(8);
40
FOR X=1 TO
50
50 PRINT#4,CHR$(213)CHR$(170);
60
NEXT X: PRINT#4
70 PRINT#4,CHR$(8);
80
FOR X=1 TO
50
90 PRINT#4,CHR$(170)CHR$(213);
100 NEXT X: PRINT#4: NEXT R
110 PRINT#4
120 CLOSE4
30
Page view 34
1 2 ... 30 31 32 33 34 35 36 37 38 39 40 ... 58 59

Comments to this Manuals

No comments