Intermec 6200 Reference Guide

Page of 410
SECTION 5
Communications and Device Support
5-32    PEN*KEY
R
 6200/6300 Hand-Held Computer Programmer’s Reference Guide
This has macro redefinition process in assembly language:
;
;UI oemDefineKeyMacro (UC keypos, UC len, UC far
*definition)
;
_oemDefineKeyMacro proc near
push bp
mov
bp,sp
mov
es,[bp+10]
mov
dx,[bp+8]
mov
cl,[bp+6]
mov
bl,[bp+4]
mov
bh,DEFINEKEYMACRO
;14h
mov
ax,5380h
int
15h
xor
al,al
;make certain al = 0
pop
bp
ret
_oemDefineKeyMacro endp
Key Redefinition
The interface for a key redefinition is a call to INT 15h with these parameters:
On Entry:
CH =Attribute byte for the key position being redefined (as in table on page
5Ć30)
BL = Key position (as in chart on page 5Ć27)
CL = New scan code (as in table starting on page 5Ć28)
BH = 15h (Define key function number)
AX = 5380h (OEM function call)
On Return:
AH = Nonzero if error
This shows key redefinition process in assembly language:
;
;UI oemDefineKey (UC keypos, UC keycode, UC type)
;
_oemDefineKey proc near
push bp
mov
bp,sp
mov
ch,[bp+8]
mov
cl,[bp+6]
mov
bl,[bp+4]
mov
bh,DEFINEKEY
;15h
mov
ax,5380h
int
15h
xor
al,al
;make certain al = 0
pop
bp
ret
_oemDefineKey endp
Refer to REMAP.EXE, a C programming example for DOS that demonstrates the
functions needed for remapping the keyboard and for mapping key macros.  This
list is also in Appendix B, Common PEN*KEY 6000 Series Information.
5. Communications
and Device Support