Epson FX-85 User Manual - Page 65

High-order bit control, FOR X=193 TO 218: LPRINT CHR$X;: NEXT X

Page 65 highlights

User-defined characters can't be printed with the top 8 pins (the standard position for most characters). Eight pins can't be used in defining characters. Here we suggest some ways to work around these types of problems. High-order bit control If you own a seven-bit system, the FX can help you. It gives you three instructions to let you control the high-order (eighth) bit: l ESCape ">" turns the high-order control and the high-order bit ON l ESCape "=" turns the high-order bit OFF l ESCape "#" returns the system to normal by turning the high-order control OFF Note that the eighth bit does not change state automatically-it remains in the state that you have set until you change it with one of the other two bit-control codes. The FX also helps you 7-bit system users by letting you leave the eighth bit turned on through changes in the ESCape codes. In other words, adding 128 to any ESCape code will not change its effect. This means that the low-order sequence for Emphasized print: CHR$(27)CHR$(69) and the high-order sequence: CHR$(27)CHR$">"CHR$(27)CHR$(69) produce the same result even though for the high-order sequence, 128 is added to each of the second pair of character-string codes. This means that when you turn the high-order bit on to handle numbers between 128 and 255, you do not have to worry about changing any ESCape code sequences. Here's an example of how you can use the three codes: NEW 10 LPRINT CHR$(27)" 'Sets eighth bit 20 FOR X=65 TO 90: LPRINT CHR$(X);: NEXT X 30 LPRINT CHR$(27)"=" 'Supresses eighth bit 40 FOR X=193 TO 218: LPRINT CHR$(X);: NEXT X 50 LPRINT CHR$(27)"#" ' Returns eighth bit to normal 310

  • 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

User-defined characters can’t be printed with the top 8 pins (the
standard position for most characters). Eight pins can’t be used in
defining characters. Here we suggest some ways to work around these
types of problems.
High-order bit control
If you own a seven-bit system, the FX can help you. It gives you
three instructions to let you control the high-order (eighth) bit:
l
ESCape ”>” turns the high-order control and the high-order bit ON
l
ESCape
”=” turns the high-order bit OFF
l
ESCape “#” returns the system to normal by turning the high-order
control OFF
Note that the eighth bit does not change state automatically-it
remains in the state that you have set until you change it with one of
the other two bit-control codes.
The FX also helps you 7-bit system users by letting you leave the
eighth bit turned on through changes in the ESCape codes. In other
words, adding 128 to any ESCape code will not change its effect. This
means that the low-order sequence for Emphasized print:
CHR$(27)CHR$(69)
and the high-order sequence:
CHR$(27)CHR$">"CHR$(27)CHR$(69)
produce the same result even though for the high-order sequence,
128
is added to each of the second pair of character-string codes. This
means that when you turn the high-order bit on to handle numbers
between 128 and 255, you do not have to worry about changing any
ESCape code sequences.
Here’s an example of how you can use the three codes:
NEW
10 LPRINT CHR$(27)"
'Sets eighth bit
20 FOR X=65 TO 90: LPRINT CHR$(X);: NEXT X
30
LPRINT CHR$(27)"="
'Supresses eighth bit
40
FOR X=193 TO 218: LPRINT CHR$(X);: NEXT X
50 LPRINT CHR$(27)"#"
' Returns eighth bit to normal
310