Epson LX-80 User Manual - Page 85

Reassigning Code, Column Reservation Numbers, LPRINT

Page 85 highlights

You are familiar with the command format that uses the ESCape code and a letter, but LX-80 graphics commands can also be in the following format: LPRINT CHR$(27)"*"CHR$(M)CHR$(Nl)CHR$(NZ); with m being the mode number found in the left column of Table 9-l. As usual, nl and n2 reserve the number of columns for graphics. The seven modes include six densities, with two speeds for doubledensity. Reassigning Code The LX-80 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" (highspeed double-density) to mode 5 (one-to-one). LPRINT CHR$(27)"@?Y"CHR$(S); As usual, this example is in MBASIC, 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 we've introduced you to the rest of the S-pin graphics densities and the reassigning code, we'll explain in more detail the part of the graphics command that reserves the number of columns for graphics (the numbers n, and n2 in our examples). If you need fewer than 255 columns of graphics, n, is the number of columns you want and n2 is zero. As you can see in Table 9-1, however, 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 (n,) 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 81

  • 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
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158

You are familiar with the command format that uses the ESCape
code and a letter, but LX-80 graphics commands can also be in the
following format:
LPRINT
CHR$(27)"*"CHR$(M)CHR$(Nl)CHR$(NZ);
with m being the mode number found in the left column of Table
9-l.
As usual,
nl
and
n2
reserve the number of columns for graphics. The
seven modes include six densities, with two speeds for double-
density.
Reassigning Code
The LX-80 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$(S);
As usual, this example is in MBASIC, 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 we’ve introduced you to the rest of the S-pin graphics
densities and the reassigning code, we’ll explain in more detail the part
of the graphics command that reserves the number of columns for
graphics (the numbers
n,
and
n2
in our examples).
If you need fewer than 255 columns of graphics,
n,
is the number
of columns you want and
n2
is zero. As you can see in Table 9-1,
however, a single line will hold as many as 1920 columns in quadru-
ple-density. Specifying more than 255 is where the second number
slot
(n2)
fits in. The first number that you send
(n,)
indicates a num-
ber of columns, but the second does not represent a number of
columns; it is multiplied by 256 and added to
nl.
The command for
81