From: SerDevian Newsgroups: comp.os.msdos.djgpp Subject: Re: Hooking interrupts Date: Tue, 21 Jan 1997 11:15:37 -0700 Organization: XYZZ Software Co. Lines: 17 Message-ID: <32E507C9.59E2@CS.ColoState.edu> References: <32E045B5 DOT 4680 AT mail DOT idt DOT net> NNTP-Posting-Host: miro.vis.colostate.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Joseph Turian wrote: > > Is it possible to hook an interrupt while in protected mode? I wanted > to write a keyboard handler, but I am new to djgpp and only know how > it is done in 8086 assembly Yes, you can. I've got source for it on my web page... (the source sets up and shuts down the handler, provides getch()/kbhit() functionality and the ability to determine if any key is up or down) -- Yamaha / XYZZ "May farce the with be you." mailto:scriven AT CS DOT ColoState DOT edu mailto:scriven AT VIS DOT ColoState DOT edu http://www.vis.colostate.edu/~scriven/