Unitech MR350MKII Barcode Reader User Manual


 
3-45
DS:DX = keyboard map with 128 bytes
corresponded to numeric and alphabetic
ASCII code table; a NULL for
defining unused key.
CX = 0x80 (table length for 128 bytes)
Returned Values: None
void TD_key_map(unsigned char *str)
{
regs.h.ah=0x1E;
regs.h.bh=1;
regs.x.cx=0x80;
segregs.ds = FP_SEG(str);
regs.x.dx = FP_OFF(str);
int86x(0x21,&regs,&regs,&segregs);
}
ASCII code corresponded to scan code in Numeric mode
Numeric keyboard layout
ASCII code [Scan code]
F1
??
F5
*
1 2 3
86
[23]
8A
[1B]
31
[13]
32
[0B]
33
[03]
F2
??
F6
?
4 5 6
87
[22]
8B
[1A]
34
[12]
35
[0A]
36
[02]
F3
??
F7
?
7 8 9
88
[21]
8C
[19]
37
[11]
38
[09]
39
[01]
F4
??
SHIFT
[C]
0 [E]
89
[20]
1F
[18]
08
[10]
30
[08]
0D
[00]
Figure 3-1 ASCII code vs. scan code cross reference table (numeric mode)