www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/22/04:10:00

Date: Wed, 22 Jul 1998 11:09:49 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: yannick DAGUILLON <yannick DOT daguillon AT holydis DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: hardware interrupt
In-Reply-To: <01bdb4ae$f7f6d5a0$9805a8c0@stg1>
Message-ID: <Pine.SUN.3.91.980722110808.10941E-100000@is>
MIME-Version: 1.0

On 21 Jul 1998, yannick DAGUILLON wrote:

> Does anybody knows how can i hook the handler of an hardware interrupt ?

I suggest to begin by reading section 18.9 of the DJGPP FAQ list 
(v2/faq210b.zip from the same place you get DJGPP).  It explains some of 
the basics.

> void my_IRQ5_handler(void)
> {
>   asm("mov  $0x20,%dx");
>   asm("mov  $0x20,%al");
>   asm("out  %al,%dx");
>   asm("iret");
> }
> 
> but it don't works :(

How exactly does it fail?

- Raw text -


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