Epson LX-90 User Manual - IBM PC Jr. 8690 PIC for LX-90 - Page 77

For X=70 To, Lprint Chr$x: Next X, Lprint Chr$27e, Lprint

Page 77 highlights

The hexadecimal numbers are the codes received by the printer, and the guide section helps you find a certain place in the list of codes. Each character in the guide section corresponds to one of the codes. If the code is for a printable character, that character is printed. If the code is for a non-printable character, such as the ESCape code or the code for a line feed or carriage return, a dot is printed. Therefore, if you ran the following BASIC program while your LX-90 was in the data dump mode, you would get the printout below it. The printer will print all but the last line and then stop. Press the ON LINE button to make the printer print the last line. 10 FOR X=70 TO 73 20 LPRINT CHR$(X): NEXT X 30 LPRINT CHR$(27)"E" 40 LPRINT "Sample text" 50 LPRINT CHR$(27)"@" You can consult Appendix A to see the meaning of the hexadecimal codes. The explanation below of the first line will put you on the right track for using the data dump mode. The first code in line 0000 is hex 46, which is the same as decimal 70, which is the code for "F"; therefore "F" is printed in the first position in the guide section. Then, because there is no semicolon in line 20, BASIC sends a carriage return and a line feed, hex codes 0D and 0A. Each of these is represented by a dot in the guide section. The program then sends the hex codes 47, 48, and 49, with each followed by a carriage return and line feed. When the program gets to line 30, it sends ESCape "E" and a carriage return and line feed. These are hex codes 1B, 45, 0D, and 0A, which are represented in the guide section by a dot, an E, and two more dots. Now you can follow a data dump printout on your own. E-5

  • 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

The hexadecimal numbers are the codes received by the printer, and
the guide section helps you find a certain place in the list of codes. Each
character in the guide section corresponds to one of the codes. If the
code is for a printable character, that character is printed. If the code is
for a non-printable character, such as the ESCape code or the code for
a line feed or carriage return, a dot is printed.
Therefore, if you ran the following BASIC program while your
LX-90 was in the data dump mode, you would get the printout below
it. The printer will print all but the last line and then stop. Press the
ON LINE
button to make the printer print the last line.
10 FOR X=70 TO
73
20 LPRINT CHR$(X): NEXT X
30
LPRINT CHR$(27)"E"
40 LPRINT
“Sample text”
50 LPRINT CHR$(27)"@"
You can consult Appendix A to see the meaning of the hexadecimal
codes. The explanation below of the first line will put you on the right
track for using the data dump mode.
The first code in line 0000 is hex 46, which is the same as decimal 70,
which is the code for “F”; therefore “F” is printed in the first position in
the guide section. Then, because there is no semicolon in line 20,
BASIC sends a carriage return and a line feed, hex codes 0D and 0A.
Each of these is represented by a dot in the guide section. The program
then sends the hex codes 47, 48, and 49, with each followed by a
carriage return and line feed.
When the program gets to line 30, it sends ESCape “E” and a car-
riage return and line feed. These are hex codes 1B, 45, 0D, and 0A,
which are represented in the guide section by a dot, an E, and two
more dots. Now you can follow a data dump printout on your own.
E-5