Star Micronics XB24-200 User Manual page 59

Star micronics multi-font printer users manual
Table of Contents

Advertisement

If your system passes the codes directly to the printer without changing them,
you will get a printout like Figure 5-5.
Most BASICS, however, are not quite that straightforward. For example, the
IBM-PC will give you a printout similar to Figure 5-6.
00
01
02
03
04
05
06
07
08
09
OA
OF: OC
OD
Ok
Of
OF
10
-1
1,' 13
14
15
16
17
1E
19
It3 1L
IO
1E
1F
;'O 21
72
23
24
25
26
i;
28 29 ZA 78, ?C ZCI Zf 2F
30
31
3:
33
34
35
36
37
38
39
3A
36
31:
AD 3f 3F
no
4,
47
4:
44
45
46
47
48
4y
4A
48
4C
40
4E
4f
50
51
52
53
54
55
50
51
58
59
SA
56
5~
5u
5E
5F
Ii0 61
62
63
64
65
66
67
68
69
6A
6H
6C
6D
6E
6F
70
71
72
73
is
75
76
77
78
79
7A
78
7C
70
7E
7F
SO
81
62
83
84
85
36
87
88
89
SA
88
8C
8D
8E
8F
90
91
92
93
94
95
Y6
97
98
99
9A
YB
91: YD
9E
9F
A0
Al
AZ
A3
A4
A5
A6
A7
A8
A9
AA
AR
AC
AC! AE
AF
50
61
BZ
83
64
55
86
57
68
59
BA
BH
BC
BD
BE
BF
1:0 Cl
CZ
C3
C4
C5
C6
C7
C8
CY
CA
CK
CC
CD
CE
CF
DO
01
DZ
D3
D4
05
00
D7
D8
DY
DA
DR
DC
DO
DE
Df
t0
El
EZ
E3
E4
ES
E6
E7
E8
EY
EA
E5
EC
ED
EE
EF
FO
Fl
F2
F3
F4
F5
F6
F7
F8
f9
FA
FB
FC
FD
FE
FF
00
OA
................
......
.........
.......
........
................
................
Figurer !W. Sample hexadecimal dump with IBM-PC.
When the IBM-PC BASIC interpreter sends hex code OD (carriage return)
it adds an extra hex OA (line feed). Hex code 1 A (end-of-file) also gets special
treatment: the interpreter does not send it at all. This can cause problems with
graphics or download character data. However, you can solve this problem
by changing line 30 in the preceding program and adding the coding shown
below.
Coding for IBM-PC with monochrome display:
30 GOSUB 100
100
X=INP(&H3BD)
:IF
X(128
THEN 100
110 OUT &H3BC,I
:OUT &H3BE,5
:OUT &H3BE,4
120
RETURN
Coding for IBM-PC with color adapter:
30 GOSUB 100
100
X=INP(&H379)
:IF
X<128
THEN 100
110 OUT &H378,1
:OUT &H37A,5
:OUT &H37A,4
120
RETURN
51

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xb24-250

Table of Contents