Epson MX-70 User Manual - Page 68

Really Long Lines

Page 68 highlights

Chapter 7 If we really understand what we're doing, the 7-bit limitation can be overcome. Apple users try: 140 GOSUB 20 : GOSUB 20 : PRINT 150 DATA 23,-23,127,127,-127,127 and RUN. Now we are getting somewhere. Instead of trying to print the entire line in one shot, we hooked two print routines together with a semicolon. The first printed 23 columns, and the second printed 127 columns. Really Long Lines Suppose we want to use even longer lines, up to the maximum of 480 columns. To specify a line length greater than 255, the last number in the "K" Nl N2 sequence must be a 1. Instead of changing line 30, we can accommodate the entire range of line widths by adding: 25 IF N>255 THEN PRINT CHR$ (27) "K" CHR$ (N-256) CHR$ (l); : GOT0 40 If the desired line width (N) is greater than 255, CHR$ (1) adds 256 columns, and CHR$ (N-256) takes care of the difference. Let's test this upgrade by changing: 10 PRINT CHR$ (27) "A" CHR$ (7) 140 GOSUB 20 : PRINT 150 DATA 300,-300,127 and RUN. Figure 7-6 We don't have to count the dots to check it. There are 60 dots per inch, so the line should be 5 inches long. 62

  • 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 7
If we really understand what we’re doing, the 7-bit limitation can be overcome.
Apple users try:
140
GOSUB 20 : GOSUB 20 : PRINT
150 DATA 23,-23,127,127,-127,127
and RUN.
Now we are getting somewhere. Instead of trying to print the entire line in one
shot, we hooked two print routines together with a semicolon. The first printed
23 columns, and the second printed 127 columns.
Really Long Lines
Suppose we want to use even longer lines, up to the maximum of 480 columns.
To specify a line length greater than 255, the last number in the <ESC>“K” Nl
N2 sequence must be a 1. Instead of changing line 30, we can accommodate the
entire range
of
line widths by adding:
25 IF N>255 THEN PRINT CHR$ (27) "K" CHR$ (N-256) CHR$ (l);
: GOT0 40
If the desired line width (N) is greater than 255, CHR$ (1) adds 256 columns, and
CHR$ (N-256) takes care of the difference. Let’s test this upgrade by changing:
10 PRINT CHR$ (27) "A" CHR$ (7)
140 GOSUB 20 : PRINT
150 DATA 300,-300,127
and RUN.
Figure 7-6
We don’t have to count the dots to check it. There are 60 dots per inch, so the
line should be 5 inches long.
62