X-Apparently-From: Message-ID: <007c01bf46dd$b0113e20$24f838ca@home-computer> From: "Prashant TR" To: Cc: , "Eli Zaretskii" Subject: Re: DJGPP TSRs (was: comp.os.msdos.djgpp) Date: Wed, 15 Dec 1999 14:50:34 +0530 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: >> You can help me very much giving me a macro which intercept every >> interrupt and, setting and/or saving correctly all registers, call a >> c function which print interrupt number and execute it in protected >> mode (__dpmi-int): > >This is an extremely complex task, unless I don't understand your >goal. In the DPMI environment, hardware interrupts are reflected to a >protected-mode handler, but most software interrupts (which is what I >think you are interested in) are not. Ok. Maybe you just want to trap all __dpmi_int calls. In that case, just try #define __dpmi_int(X, Y) \ printf("Interrupt %d\n", i);\ __dpmi_int(X, Y) But if you want to catch all interrupts (including h/w interrupts), like Eli said, you *must* hook all interrupts (which doesn't sound like a sensible thing to do). Prashant ------------------------------------------ One pound of learning requires ten pounds of common sense to apply it. __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one place. Yahoo! Shopping: http://shopping.yahoo.com