SECTION 6
Conversions and Interfaces
PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide 6-105
Character Codes Returned by INT 16h
When a 101Ćstyle keyboard is used:
"
Return all standard 83/84 style keyboard character codes, as is.
"
Mask the duplicate keys to the same 2Ćbyte code as their 83/84 style
counterparts.
"
Kill any character codes not compatible with the 83/84 key keyboard.
The column labeled Scan Codes In Hex," in the table below, lists the codes
offered to INT 09h by the keyboard controller through Port 60h. This table
shows the character codes returned in AX through the INT 16h standard
functions 00h/01h. The same values are returned using extended functions
10h/11h.
Table 6Ć4
Character Codes Returned by INT 16h, Functions 00h/01h
101
Key
No.
U.S.
Keyboard
Legend
Scan
Codes
(Hex)
Unshifted
(AH/AL)
Shifted
(AH/AL)
Control
(AH/AL)
Alt
(AH/AL)
1
‘ ~
29
29/60
29/7e
2
1 !
02
02/31
02/21
78/00
3
2 @
03
03/32
03/40
03/00
79/00
4
3 #
04
04/33
04/23
7A/00
5
4 $
05
05/34
05/24
7B/00
6
5 %
06
06/35
06/25
7C/00
7
6 ^
07
07/36
07/5E
07/1E
7D/00
8
7 &
08
08/37
08/26
7E/00
9
8 *
09
09/38
09/2A
7F/00
10
9 (
0A
0A/39
0A/28
80/00
11
0 )
0B
0B/30
0B/29
81/00
12
ć _
0C
0C/2D
0C/5F
0C/1F
82/00
13
= +
0D
0D/3D
0D/2B
83/00
15
Backspace
0E
0E/08
0E/08
0E/7F
16
Tab
0F
0F/09
0F/00
17
Q
10
10/71
10/51
10/11
10/00
18
W
11
11/77
11/57
11/17
11/00
19
E
12
12/65
12/45
12/05
12/00
20
R
13
13/72
13/52
13/12
13/00
21
T
14
14/74
14/54
14/14
14/00
22
Y
15
15/79
15/59
15/19
15/00
23
U
16
16/75
16/55
16/15
16/00
24
I
17
17/69
17/49
17/09
17/00
25
O
18
18/6F
18/4F
18/0F
18/00
26
P
19
19/70
19/50
19/10
19/00
27
[ {
1A
1A/5B
1A/7B
1A/1B
28
] }
1B
1B/5D
1B/7D
1B/1D
29
\
2B
2B/5C
2B/7C
2B/1C
30
Caps Lock
3A
31
A
1E
1E/61
1E/41
1E/01
1E/00
32
S
1F
1F/73
1F/53
1F/13
1F/00
6. Conversions and
Interfaces