Xref: utzoo comp.sys.ibm.pc:45013 comp.lang.c:26214 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!asuvax!ncar!ico!ism780c!randvax!ucla-an!stb!richard From: richard@stb.uucp (Richard Conner) Newsgroups: comp.sys.ibm.pc,comp.lang.c Subject: Re: microsoft c isr question Message-ID: <1990Feb21.073956.19404@stb.uucp> Date: 21 Feb 90 07:39:56 GMT References: Reply-To: richard@stb.uucp (Richard Conner) Distribution: usa Organization: The Serial Tree BBS, +1 213 397 3137 Lines: 16 In article wiener@stout.UCAR.EDU (Gerry Wiener) writes: >In the following code an interrupt handler for the keyboard is >replaced [...] > >#define KEYBD 0x16 What you REALLY want is: #define KEYBD 0x9 /* 9 = interrupt FROM keyboard */ Interrupt 0x16 is for ROM BIOS services, i.e. turning on/off typematic, etc. 0x9 is the keyboard interrupt which occurs when each key is hit. (AS WELL AS when each key is RELEASED) -Richard -- [ .signature under construction - turn back before it's too late ]