Epson RX-80 User Manual - Page 117

Coding Solutions, ON/OFF LINE

Page 117 highlights

Some computer systems change one or more codes when sending them from BASIC to the printer. The ability of the Apex80 to dump in hexadecimal lets you determine which codes are creating problems for your system. A hex printout of a program shows you exactly what the printer is receiving, regardless of what the computer is sending. The following test program lets you check to see which codes, if any, are problems for your computer system. 10 FOR X=0 TO 255 20 LPRINT CHR$(X); 30 NEXT X Put the printer in data dump mode and then run the program. Remember to press the ON/OFF LINE button to make the Apex80 print the final line. Then compare your printout with the list of hex codes in order in Appendix B. If any are skipped or repeated, you know that your BASIC language changes some codes before it sends them to the printer. For example, the line below is the first line of the printout of the test program run on a system that 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). 0000 00 01 02 03 04 05 06 07 08 20 20 20 20 20 20 20 The data dumping capability can help you solve problems quickly. Appendix B can 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 Apex80, 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. It may help, however, to be aware of some generic problems and some ways to handle them. C-6 Problem Solving and Maintenance

  • 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

Some computer systems change one or more codes when sending
them from BASIC to the printer. The ability of the Apex80 to dump
in hexadecimal lets you determine which codes are creating problems
for your system.
A hex printout of a program shows you exactly what the printer is
receiving, regardless of what the computer is sending. The following
test program lets you check to see which codes, if any, are problems for
your computer system.
10 FOR X=0 TO 255
20 LPRINT CHR$(X);
30
NEXT X
Put the printer in data dump mode and then run the program.
Remember to press the
ON/OFF LINE
button to make the Apex80 print
the final line. Then compare your printout with the list of hex codes in
order in Appendix B. If any are skipped or repeated, you know that
your BASIC language changes some codes before it sends them to the
printer.
For example, the line below is the first line of the printout of the test
program run on a system that 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).
0000
00
01
02
03
04
05
06
07
08
20
20
20
20
20
20
20
. . . . . . . . . .
The data dumping capability can help you solve problems quickly.
Appendix B can 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 Apex80, 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. It may help, however, to be aware of some generic problems
and some ways to handle them.
C-6
Problem Solving and Maintenance