From: "Johnny Chan" To: Cc: Subject: RE: deriving the interrupt vector Date: Wed, 6 Oct 1999 11:08:20 -0700 Message-ID: <000601bf1025$c65ed000$ae3d7a86@phoenix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal In-Reply-To: <19991006123316.20502.rocketmail@web1402.mail.yahoo.com> Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Do you know how to raise a software interrupt in DJGPP? I had setted the interrupt vector, now I want to try to test it within my program, Does DJGPP has any function to raise a 32bit interrupt? --jC >>-----Original Message----- >>From: Prashant TR [mailto:prashant_news AT yahoo DOT com] >>Sent: Wednesday, October 06, 1999 5:33 AM >>To: djgpp AT delorie DOT com >>Cc: Martin_Czamai AT peak-service DOT com >>Subject: Re: deriving the interrupt vector >> >> >> >> >>--- Martin Czamai >>wrote: >>> Hi all again, >>> >>> who can tell me how to derive the interrupt vector, >>> when I've got the >>> interrupt request line (interrupt level) of a >>> interrupt controller? >>> >> >>Hi Martin, >> >>I didn't quite get what you mean. Anyway, I assume >>you're asking me how to catch IRQs 0-15. >> >>The __dpmi_version_ret function gives you the PIC >>mater amd slave base interrupts. >> >>This means that if you want to hook IRQ0-7, you'll >>need to hook up interrupt vector=pic_master_base+IRQ >>no. This applies for IRQs 0-7. >> >>For IRQs 8-15, you'll need to hook up >>interrupt=pic_slave_base+IRQ no. >> >>Normally, IRQ0-7=interrupt 8h-0fh >> IRQ8-15=interrupt 70h-78h >> >>Use _go32_dpmi_set_protected_mode_interrupt_vector. >> >>Is this more or less what you're looking for ? >> >>---- >>Prashant TR >>http://www.members.tripod.com/prashant_tr/ >> >>===== >> >>__________________________________________________ >>Do You Yahoo!? >>Bid and sell for free at http://auctions.yahoo.com >>