Epson FX-85 User Manual - Page 61

Coding Solutions, F-1. Best-case hex dump, F-2. TRS-80 Model III hex dump

Page 61 highlights

Figure F-1. Best-case hex dump Most BASICS, however, are not quite that straightforward. For example, the TRS-80 Model III prints Figure F-2: Figure F-2. TRS-80 Model III hex dump Notice that the FX is receiving decimal code 10 as hex 0D, which is decimal 13. In addition, decimal code 12 (hex 0C) is coming across as a series of line feeds, hex 0A (decimal 10). The hex mode prints 20 numbers per line on the FX-80 and 34 numbers per line on the FX-100. If it receives fewer than it expects in a line, it sits in a holding pattern, awaiting more data. Take the printer offline to dump the characters to the paper. To debug a program quickly, just use the hex dumping capability. 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 306

  • 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

Figure F-1. Best-case hex dump
Most BASIC
S
, however, are not quite that straightforward. For exam-
ple, the TRS-80 Model III prints Figure F-2:
Figure F-2. TRS-80 Model III hex dump
Notice that the FX is receiving decimal code 10 as hex 0D, which is
decimal 13. In addition, decimal code 12 (hex 0C) is coming across as a
series of line feeds, hex 0A (decimal 10).
The hex mode prints 20 numbers per line on the FX-80 and 34 num-
bers per line on the FX-100. If it receives fewer than it expects in a line,
it sits in a holding pattern, awaiting more data. Take the printer off-
line to dump the characters to the paper.
To debug a program quickly, just use the hex dumping capability.
Appendix A will help you translate the hex codes to ASCII equiva-
lents.
Coding Solutions
Once you’ve determined that a code creates problems for your
306