Epson LX-90 User Manual - Parallel 8620 PIC for LX-90 - Page 63

Reassigning Code, Column Reservation Numbers, LPRINT, CHR$27ZCHR$l28CHR$7

Page 63 highlights

Reassigning Code The LX-90 has a graphics command that changes one graphics mode to another. You can use it with many commercial graphics software programs to change the density and shape of your printouts. The code is ESCape "?s" n, where s is one of the four alternate graphics codes (K, L, Y, or Z) and n is the number of the new code (O-6). For example, if you send the following code before you run a graphics program, it will change every instance of mode "Y" (high-speed double-density) to mode 5 (one-to-one). LPRINT CHR$(27)"?Y"CHR$(5) As usual, this example is in BASIC, but you can send the code in any programming language. Even if you don't know which code your graphics program uses, a little experimentation should tell you whether the reassigning code can improve your graphics printouts. Column Reservation Numbers Now that you've seen the rest of the 8-pin graphics densities and the reassigning code, this section explains in more detail the part of the graphics command that reserves the number of columns for graphics (the numbers nl and n2 in the examples). If you need fewer than 255 columns of graphics, n1 is the number of columns you want and n2 is zero. As you can see in Table 8-1, however, a single line will hold as many as 1920 columns in quadrupledensity. Specifying more than 255 is where the second number slot (n2) fits in. The first number that you send (nl) indicates a number of columns, but the second does not represent a number of columns; it is multiplied by 256 and added to nl. The command for the maximum number of dots you can reserve on the LX-90, then, is: CHR$(27)"Z"CHR$(l28)CHR$(7); or, in the other format: CHR$(27)"*"CHR$(3)CHR$(128)CHR$(7); which is 128 dots plus 7 times 256 dots, for a total of 1920 dots in one row. 61

  • 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
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122

Reassigning Code
The LX-90 has a graphics command that changes one graphics
mode to another. You can use it with many commercial graphics soft-
ware programs to change the density and shape of your printouts.
The code is ESCape “?s” n, where s is one of the four alternate graphics
codes (K, L, Y, or Z) and n is the number of the new code (O-6).
For example, if you send the following code before you run a
graphics program, it will change every instance of mode “Y”
(high-speed double-density) to mode 5 (one-to-one).
LPRINT
CHR$(27)"?Y"CHR$(5)
As usual, this example is in BASIC, but you can send the code in
any programming language.
Even if you don’t know which code your graphics program uses, a
little experimentation should tell you whether the reassigning code can
improve your graphics printouts.
Column Reservation Numbers
Now that you’ve seen the rest of the 8-pin graphics densities and the
reassigning code, this section explains in more detail the part of the
graphics command that reserves the number of columns for graphics
(the numbers nl and n2 in the examples).
If you need fewer than 255 columns of graphics,
n1
is the number of
columns you want and n2 is zero. As you can see in Table
8-1,
how-
ever, a single line will hold as many as 1920 columns in quadruple-
density. Specifying more than 255 is where the second number slot
(n2) fits in. The first number that you send (nl) indicates a number of
columns, but the second does not represent a number of columns; it is
multiplied by 256 and added to nl. The command for the maximum
number of dots you can reserve on the LX-90, then, is:
CHR$(27)"Z"CHR$(l28)CHR$(7);
or, in the other format:
CHR$(27)"*"CHR$(3)CHR$(128)CHR$(7);
which is 128 dots plus 7 times 256 dots, for a total of 1920 dots in one
row.
61