Intermec 6100 Reference Guide

Page of 328
SECTION 6
Conversions and Interfaces
6-88    PEN*KEY
R
 6100 Computer Programmer’s Reference Guide
The states of the keys are defined as follows:
Pressing Caps Lock shifts alphabetical keys.  All other keys defined to return
normal values return the normal value indicated in the chart.  Pressing a shift
key while in the Caps Lock state causes alphabetical keys to return nonshifted
values.  All other keys defined to return shifted values return their shifted value.
Pressing Caps lock a second time reverses the action.
Pressing Scroll Lock by itself causes no action other than the recording of the
state in the shift flags.  Applications must query the state of the flag to take adĆ
vantage of Scroll Lock.
Pressing Num Lock causes the numeric keypad keys to return numeric values.
Pressing a shift key while in the Num Lock state causes these same keys to reĆ
turn the normal values listed in the chart.  Pressing Num Lock a second time reĆ
verses the action.
Holding the Alt down in combination with the numeric keypad keys lets you enĆ
ter any ASCII code from 0 to 255 into the system.  Register AH returns zero and
register AL returns the entered code when the Alt key is released.  If more than
three digits are entered, the value returned is moduleĆ256.
Combination of Alt, Ctrl, and shift key presses are given the following priority:
Alt, Ctrl, Shift.  The only valid combination is CtrlĆAlt used for system reset.
Duplicate keys on the 101Ćstyle keyboard return the same 2Ćbyte character code
as their equivalent 83/84Ćstyle keyboard value.  These duplicates states are reĆ
corded in the shift flags.  Applications must query the shift flags to distinguish
these duplicate keys.
Character Codes Returned by INT 16h, Functions 00h/01h
When a 101Ćstyle keyboard is used:
"
Return all standard 83/84 style keyboard character codes, as is.
"
Mask duplicate keys to the same 2Ćbyte code as 83/84 style counterparts.
"
Kill any character codes not compatible with the 83/84 key keyboard.
Table 6Ć6 
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
6. Conversions and
Interfaces