Epson LX-80 User Manual - Page 133

Solutions for Specific Systems, Applesoft BASIC solutions, X=160

Page 133 highlights

To find out whether your system is an 8-bit system, capable of generating all 256 ASCII codes, enter this simple test: 10 P'OR X=160 TO 254 20 L,PRINT CHR$( X> ; 30 NEXT X If you get italic characters when you RUN this, you are using an 8-bit system. If you have a 7-bit system, you need to understand what happens to the control codes you send. The LX-80 automatically interprets these codes the way your system sends them-as the lower half of the range. There is something you can do when you want to send the upper half (128-255): have your program convert all codes outside of the active range to their equivalent in the upper half by adding 128 to them. The problems that are associated with 7-bit systems include: l Limitations on width in graphics mode l Inability to use the top pin for graphics mode User-defined characters can't be printed with the top eight pins (the standard position for most characters). Eight pins can't be used in defining characters. Remember that the best solution usually is to use an interface that can send eight bits to the printer. Solutions for Specific Systems The next four subsections illustrate dealing with interface puzzles on four types of computers. Applesoft BASIC solutions Applesoft BASIC does not use PRINT to send data to the screen and LPRINT to send data to the printer as MBASIC does. Therefore, put an PR#1 at the beginning of a program and change all instances of LPRINT to PRINT. If one of our programs contains an INPUT statement or a PRINT statement, there will be a message that should go to the screen before anything is sent to the printer. In these programs, leave the first lines as they are and after the INPUT and/or PRINT statements, add a line that states PR#1; then change all the instances of LPRINT to PRINT and put a line that states PR#0 at the end of the program. F-11

  • 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

To find out whether your system is an 8-bit system, capable of
generating all 256 ASCII codes, enter this simple test:
10
P’OR
X=160
TO
254
20
L,PRINT
CHR$(
X>
;
30
NEXT
X
If you get italic characters when you RUN this, you are using an 8-bit
system.
If you have a 7-bit system, you need to understand what happens
to the control codes you send. The LX-80 automatically interprets
these codes the way your system sends them-as the lower half of the
range. There is something you can do when you want to send the
upper half (128-255): have your program convert all codes outside of
the active range to their equivalent in the upper half by adding 128 to
them.
The problems that are associated with 7-bit systems include:
l
Limitations on width in graphics mode
l
Inability to use the top pin for graphics mode
User-defined characters can’t be printed with the top eight pins (the
standard position for most characters). Eight pins can’t be used in
defining characters.
Remember that the best solution usually is to use an interface that
can send eight bits to the printer.
Solutions for Specific Systems
The next four subsections illustrate dealing with interface puzzles
on four types of computers.
Applesoft BASIC solutions
Applesoft BASIC does not use PRINT to send data to the screen
and LPRINT to send data to the printer as MBASIC does. Therefore,
put an PR#1 at the beginning of a program and change all instances
of LPRINT to PRINT.
If one of our programs contains an INPUT statement or a PRINT
statement, there will be a message that should go to the screen before
anything is sent to the printer. In these programs, leave the first lines
as they are and after the INPUT and/or PRINT statements, add a line
that states PR#1; then change all the instances of LPRINT to PRINT
and put a line that states PR#0 at the end of the program.
F-11