Epson MX-70 User Manual - Page 57

What Are We Trying To Do?

Page 57 highlights

Chapter 6 Line 10 sets the top-to-top line spacing at 7 dots. Lines 20 and 30 KICK the printer into graphics mode. N specifies the number of graphic columns. By making it a variable, we can easily change it later, right within a program, to print graphic lines of different lengths. As a preliminary software test before things get too complicated, we'd better check the line spacing. Add these lines: 25 FOR X=1 TO 3 40 FOR C = 1 TO 50 : PRINT CHR$ (127); : NEXT C 501 PRINT : NEXT X . . . and we should always return the line spacing to its "normal" power-up figure of 12 by ending every program with: 900 PRINT CHR$ (27) "2" 999 PR #0 (Non-Apple owners use END instead) Now we can RUN. After 3 passes of the print head, our printout should look like this: Figure 6-1 What Are We Trying To Do? We are creating a universal program that will READ and process large amounts of DATA, and is simple to use. READ and DATA statements are used since the DATA need be entered in the program only once, and DATA lines are easily edited. Think about this paragraph and understand it since the going will get rougher before it gets easier. Let's delete lines 25 and 50 and change line 20 so it will READ in a value of N, the number of dots to be printed in a specific row: 20 READ N : PRINT TAB(10); 50

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107

Chapter 6
Line 10 sets the top-to-top line spacing at 7 dots.
Lines 20 and 30 KICK the printer into graphics mode. N specifies the
number of graphic columns. By making it a variable, we can easily change
it later, right within a program, to print graphic lines of different lengths.
As a preliminary software test before things get too complicated, we’d better
check the line spacing. Add these lines:
25
FOR X=1
TO
3
40
FOR C =
1 TO
50
:
PRINT
CHR$ (127);
:
NEXT
C
501
PRINT :
NEXT
X
. . .
and we should always return the line spacing to its “normal” power-up
figure of 12 by ending every program with:
900 PRINT CHR$ (27) "2"
999 PR #0
(Non-Apple owners use END instead)
Now we can RUN.
After 3 passes of the print head, our printout should look like this:
Figure 6-1
What Are We Trying To Do?
We are creating a universal program that will READ and process large amounts
of DATA, and is simple to use. READ and DATA statements are used since the
DATA need be entered in the program only once, and DATA lines are easily
edited. Think about this paragraph and understand it since the going will get
rougher before it gets easier.
Let’s delete lines 25 and 50 and change line 20 so it will READ in a value of N,
the number of dots to be printed in a specific row:
20
READ N
: PRINT TAB(10);
50