delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/05/26/11:17:42

Date: Fri, 26 May 1995 14:35:27 +0000 (GMT)
From: "Paal-Kr. Engstad" <pke AT engstad DOT ingok DOT hitos DOT no>
To: tjw AT omnigroup DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Keyboard interrupt handler brokenness

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019