Date: Wed, 22 Jul 1998 11:09:49 +0300 (IDT) From: Eli Zaretskii To: yannick DAGUILLON cc: djgpp AT delorie DOT com Subject: Re: hardware interrupt In-Reply-To: <01bdb4ae$f7f6d5a0$9805a8c0@stg1> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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?