Mail Archives: djgpp/1995/05/26/11:17:42
On Fri, 26 May 1995, Timothy J. Wood wrote:
>
> I'm just starting my DOS hacking (having lived most of my life in
> Unix) and I've just written my first DJGPP interrupt handler. This
> does some simple keyboard operations -- detecting key down and up
> and is pieced together from various pieces of examples that I've
> found laying around.
>
> Amazingly, it works. Well, mostly. Two problems. As written
> below, eventually the keyboard will start beeping. Presumably it's
> input buffer it filled. In fact, when I hit escape, a bunch of
> stuff is printed out; the contents of the full buffer, I assume.
The problem is that you have chained the interrupt. This means that after
your interrupt routine is done, the old interrupt is called. This is the
one causing the input buffer to get filled. I can't remember out of
memory which _go32_dpmi* function to use instead, but do 'info libc',
and you will find out.
PKE.
- Raw text -