PT630 Programming Reference Guide
Page 72 of 59
------------------------------------------------------------------------------------------------------------------
4.
Error entry value on 1.8.8
Flush RS232 RX buffer
Entry Parameter: AH =
08
Return
Value:
None
5.
Add COM2 RS232 function call on section
1.9
6.
Add reverse display under small font mode on
1.2.9
7.
Keymap table error on 1.5.15
Set User-defined Key-map
Entry Parameter: AH = 1EH
AL = 0
DS:DX
;
pointer
to
Key-map
buffer
with
5*32
characters
;
corresponding
to
keypad
in
5
input
modes
Return
Value:
None
Example
:
void TD_key_map(unsigned char *str)
{
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
regs.h.ah=0x1E;
regs.h.al=0;
int86x(0x21,®s,®s,&segregs);
}
Note:
Default system key-map:
Non-ALPHA Mode
ALPHA-1 Mode
ALPHA-2 Mode
ALPHA-3 Mode
CMD Mode
byte
Seq
key
name
hex
code
byte
Seq.
key
name
hex
code
byte
Seq.
key
name
hex
code
byte
Seq.
key
name
hex
code
byte
Seq.
key
name
hex
code
0
7
37
32
S
53
64
T
54
96
U
55
128
-
2D
1
4
34
33
J
4A
65
K
4B
97
L
4C
129
:
3A
2
1
31
34
A
41
66
B
42
98
C
43
130
#
23
3
CLR
08
35
CLR
08
67
CLR
08
99
CLR
08
131
\
5c
4
0
36
0
68
0
100
0
132
84
5
F1
86
37
F1
86
69
F1
86
101
F1
86
133
F5
8A
6
ENTER
0D
38
ENTER
0D
70
ENTER
0D
102
ENTER
0D
134
ENTER
0D
7
0
39
0
71
0
103
0
135
0
8
8
38
40
V
56
72
W
57
104
X
58
136
+
2B
9
5
35
41
M
4D
73
N
4E
105
Q
4F
137
=3D
24
10
2
32
42
D
44
74
E
45
106
F
46
138
$
24
11
0
30
43
@
40
75
?
3F
107
&
26
139
‘
27
12
3
11 44
3
11 76
3
11 108
3
11 140
3
11
13
5
13 45
5
13 77
5
13 109
5
13 141 PgDn
93
14
F2
87
46
F2
87
78
F2
87
110
F2
87
142
F6
8B
15
0
47
0
79
0
111
0
143
00
16
9
39
48
Y
59
80
Z
5A
112
-
5F
144
*
2A
17
6
36
49
P
50
81
Q
51
113
R
52
145
/
2F
18
3
33
50
G
47
82
H
48
114
I
49
146
%
25
19
.
2E
51
;
3B
83
.
2E
115
,
2C
147
!
21
20
4
10 52
4
10 84
4
10 116
4
10 148
4
10
21
6
12 53
6
12 85
6
12 117
6
12 149 PgUp
92
22
F3
88
54
F3
88
86
F3
88
118
F3
88
150 F7 8C
23
0
55
0 87
0 119 0
151 0
24
0
56
0
88
0
120
0
152
0
25
0
57
0
89
0
121
0
153
0
26
0
58
0
90
0
122
0
154
0
27
84
59
84
91
84
123
84
155
84
28
SP
20
60
SP
20
92
SP
20
124
SP
20
156
SP
20
29
80
61
00
93
00
125
00
157
80
30
F4
89
62
F4
89
94
F4
89
126
F4
89
158
F8
8D
31
0
63
0
95
0
127
0
159
0