Epson LX-80 User Manual - Page 130

Coding Solutions, an alternative printer interface card for your system. This is the best

Page 130 highlights

Put the printer in data dump mode and then RUN the program. Remember to press the ON LINE button to make the LX-80 print the final line. Then compare your printout with the list of hex codes in order in the middle columns of page A-2 in Appendix A. If any are skipped or repeated, you will know that your BASIC language changes some codes before it sends them to the printer. For example, in the line below, which is the first line of the printout of the test program run on a QX-10, you can see that in this case MBASIC changes hex 09, which is the code for horizontal tabbing, to several 20s, the code for a space. Therefore, you know that if you use this system, you must be careful about sending a decimal 9 (hex 09). The data dumping capability can help you debug a program quickly. Appendix A will help you translate the hex codes to ASCII equivalents. Coding Solutions Once you've determined that a code creates problems for your printing, either by trial and error or by using the data dumping capability of the LX-80, you can start overcoming them. Because each computer system deals with ASCII codes differently, it is impossible to provide solutions for all potential problems in one appendix. We can, however, point out generic problems and suggest ways to handle them. There are four common approaches. First, you may be able to buy an alternative printer interface card for your system. This is the best solution for 7-bit system problems. See your computer dealer for advice about this. The second approach is to use commercially available software that is specifically designed to overcome these coding problems. Consult your computer dealer or computer publications to see if a program for your computer system is available. The third approach consists of avoiding the software that is changing the codes. On most computers you can send each code directly to the printer port. This bypasses the BASIC interpreter and avoids the interface. F-8

  • 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

Put the printer in data dump mode and then RUN the program.
Remember to press the ON LINE button to make the LX-80 print
the final line. Then compare your printout with the list of hex codes
in order in the middle columns of page A-2 in Appendix A. If any are
skipped or repeated, you will know that your BASIC language
changes some codes before it sends them to the printer.
For example, in the line below, which is the first line of the print-
out of the test program run on a QX-10, you can see that in this case
MBASIC changes hex 09, which is the code for horizontal tabbing, to
several 20s, the code for a space. Therefore, you know that if you use
this system, you must be careful about sending a decimal 9 (hex 09).
The data dumping capability can help you debug a program quick-
ly. Appendix A will help you translate the hex codes to ASCII
equivalents.
Coding Solutions
Once you’ve determined that a code creates problems for your
printing, either by trial and error or by using the data dumping
capability of the LX-80, you can start overcoming them.
Because each computer system deals with ASCII codes differently,
it is impossible to provide solutions for all potential problems in one
appendix. We can, however, point out generic problems and suggest
ways to handle them.
There are four common approaches. First, you may be able to buy
an alternative printer interface card for your system. This is the best
solution for 7-bit system problems. See your computer dealer for
advice about this.
The second approach is to use commercially available software that
is specifically designed to overcome these coding problems. Consult
your computer dealer or computer publications to see if a program
for your computer system is available.
The third approach consists of avoiding the software that is chang-
ing the codes. On most computers you can send each code directly to
the printer port. This bypasses the BASIC interpreter and avoids the
interface.
F-8