Path: utzoo!attcan!uunet!mcvax!hafro!krafla!rispa2!orn From: orn@rsp.is (Orn E. Hansen) Newsgroups: comp.sys.ibm.pc Subject: Re: Enhanced Keyboard Scan Codes Summary: further on Enhanced keyboards Message-ID: <109@.rsp.is> Date: 25 Jan 89 09:56:50 GMT References: <67172BP3@PSUVM> <3421@arcturus> <108@.rsp.is> Organization: National Hospital of Iceland Lines: 33 Some machines have a BIOS that can support Enhanced keyboards while others don't. Some keys need a little further translation than just the scan codes, there is a magic scan code 0x??e0 that is to identify these keycodes that are not on the PC-Kbd. There is also a specific way to find out weather the computer has BIOS, DOS etc., that supports the E-Kbd. The BIOS date on the XT is supposed to be after 01-01-86 and for the AT 11-01-86 (mm-dd-yy). Ok, heres some info on the magic codes 0x??e0. You take the high byte subtract it with 0x47 and add 0xb3 to get the actual (correct codes). Also, the following codes need some special handling: 0x372a -> 0xad00 0x4a2d -> 0xae00 0x4e2b -> 0xaf00 0xe00d -> 0xb000 0xe00a -> 0xb100 0xe02f -> 0xb200 You'll need to re-program the int16 routine (the 0 and 1 functions) to translate these codes and beware DOS throw's away scan codes it doesn't recognise! The keyboard types are stored at location 0x40:0x96, the info on bits are stored in the header file. The date of the BIOS is stored at location 0xFFFF:5 in the format "mm/dd/yy" absolutely. ========================================================================== Orn Hansen System analyst. --------------------------------------------------------------------------