From: authentic AT tip DOT nl (Rick) Newsgroups: comp.os.msdos.djgpp Subject: Re: keyboard handlers Date: Mon, 29 Dec 1997 09:23:20 GMT Organization: NL-NIC Lines: 30 Message-ID: <68aejh$nmu$1@cadmium.aware.nl> References: <68729j$fj9$1 AT newsfep4 DOT sprintmail DOT com> Reply-To: authentic AT tip DOT nl NNTP-Posting-Host: nijmegen-021.std.pop.tip.nl To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Ionicis <"An family> wrote: >I'm pretty new at game programming in general, so I have MANY >newbie-like questions. So far, I've been using int 16h's functions to >get my keyboard input. Then I heard that I should write my own keyboard >handler instead of the BIOS functions. I read the article on keyboards >in the PCGPE, and it says something about an interrupt 9 being >generated. What the hell does this mean, and how can I check for an >interrupt 9? I suppose I need to learn more about how a computer's >insides work, so is there I web site(s) where I can learn so? Yes there is. R. Hyde's art of assembly language gives you all the info you need( and probably a little more): http://webster.ucr.edu/Page_asm/ Also you might have a look at a few other asm pages. For instance the page of the FAQ maintainer of c.l.a.x. Ray Moon, and the asm snippets collection of James Vahn. The first answer is that you have to distinguish between hard-ware and software interrupts, where int9 is a hardware one. You can check for int9 by writing a bare bones int9 handler which returns for instance the scancodes from the key's you pressed( and released). I can send you source if you want. Also there are at least two keyboard handlers in the art of assembly language. Take care, Rick