From: "yannick DAGUILLON" Newsgroups: comp.os.msdos.djgpp Subject: hardware interrupt Date: 21 Jul 1998 13:50:20 GMT Organization: Wanadoo - (Client of French Internet Provider) Lines: 15 Message-ID: <01bdb4ae$f7f6d5a0$9805a8c0@stg1> NNTP-Posting-Host: tntrasp1-130.abo.wanadoo.fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Does anybody knows how can i hook the handler of an hardware interrupt ? I tried to use __dpmi_set_protected_mode_interrupt_vector with the following handler void my_IRQ5_handler(void) { asm("mov $0x20,%dx"); asm("mov $0x20,%al"); asm("out %al,%dx"); asm("iret"); } but it don't works :(