Date: Sun, 10 Jun 2001 21:17:06 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Vermin" Message-Id: <2593-Sun10Jun2001211705+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: (ratspl@hotmail.com) Subject: Re: Keyboard handler... References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Vermin" > Newsgroups: comp.os.msdos.djgpp > Date: Sun, 10 Jun 2001 19:22:38 +0200 > > I'm currently trying to make my first game in djgpp, and for that I need a > keyboard handler. I've programmed one before, but that was in real mode > ASM... so I was wondering if anybody has got any source code or tutorials > that I can use!?! First, take a look at section 18.9 of the FAQ: it should explain some of the basics of writing hardware interrupt handlers with DJGPP. That section also mentions several tutorials which could help you. In addition, every DJGPP program installs a keyboard handler right in its startup code (to support Ctrl-C). So you could look at the file exceptn.S that is part of djlsr203.zip archive, and see a working example of a keyboard handler.