Epson FX-80 User Manual page 237

Hide thumbs Also See for FX-80:
Table of Contents

Advertisement

that the low-order control codes arethe ASCII codes 0 through 31 plus
127, and the high-order control codes are 128 through 159 plus 255.}
Control codes are a strange kettle of fish. These codes do not nor-
mally print symbols on paper, rather they cause the printer to change
modes. To make them print as normal symbols requires an extra com-
mand. For example, the command to "normalize" the high-order con-
trol codes is:
LPRINT CHR$(27)"6"
Let's use this command to see how the ROM control codes print when
they are stripped of their high and mighty ways. Add:
2 LPRINT CHR$(27)"6"
4 FOR X=128 TO 159: LPRINT CHR$(X)j: NEXT X
5 ' 7-bit'ers see Appendix I
6 LPRINT CHR$(27)"7"
8 STOP
Aha! That's where the international characters (italic version) are hid-
ing in the ROM. So the (ESC) "6" command without the (ESC) "R"
gives you access to the international characters. The (ESC)
"7"
turns
these characters back into control codes. Let's see how the (ESC)
"6"
and (ESC)
"7"
commands work with user-defined characters in
RAM.
Delete lines 2 through 8, and type:
131i' LPRINT CHR$(27)"&"CHR$(Ii')CHR$(128)CHR$(131)j
141i' FOR Y=l TO 4: LPRINT CHR$(139)j
164 ' 7-bit'ers can't run this-see Appendix I
165 LPRINT CHR$(27)"6"
181i' LPRINT CHR$(128)CHR$(129)CHR$(131i')CHR$(131)
1141i' DATA 1i',126,1,2,4,8,4,2,1,126,1i': ' My W
And let 'er go:
WARS
206

Advertisement

Table of Contents
loading

Table of Contents