SECTION 6
Conversions and Interfaces
PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide 6-111
INT 16h, Function AH = 12h: Read Extended Shift Status
BIOS
On Entry:
AH = 12h
On Return:
AH = Shift status
Bit 7 = Sys Req pressed
Bit 6 = Caps Lock state
Bit 5 = Num Lock state
Bit 4 = Scroll Lock state
Bit 3 = Right Ctrl state
Bit 2 = Left Ctrl state
Bit 1 =Left Alt state
Bit 0 = Right Alt state
AL = Shift status
Bit 7 = Insert state
Bit 6 = Caps Lock state
Bit 5 = Num Lock state
Bit 4 = Scroll Lock state
Bit 3 = Alt + Shift
Bit 2 = Ctrl + Shift
Bit 1 = Left shift
Bit 0 = Right shift
INT 16h, Function AH = FEh: Swap Keyboard Translate Tables
4000API
On Entry:
AH = 0FEh
ES:BX = Address of new keyboard table as defined in following table.
ES:BX = 0:0 restores default table.
On Return:
None
If ES:BX = 0, install the default keyboard table. This is a nonstandard function.
Using this function affects the portability of the application to other
PCĆcompatible platforms.
40Ćkey translate table:
;unshifted 40 key table
db
‘A’,
‘B’,
‘C’,
‘D’,
‘E’,
‘F’,
‘G’
db
‘H’,
‘I’,
‘J’,
‘K’,
‘L’,
‘M’,
‘N’
db
‘O’,
‘P’,
‘Q’,
‘R’,
‘S’,
‘T’,
‘U’
db
‘V’,
‘W’,
‘X’,
CLEAR,
‘7’,
‘8’,
‘9’
db
–1,
–1,
–1,
EXIT,
‘4’,
‘5’,
‘6’
db
–1,
–1,
–1,
LSHFT,
‘1’,
‘2’,
‘3’
db
–1,
–1,
–1,
ESCAPE,
‘0’,
–1,
–1
6. Conversions and
Interfaces