Mail Archives: djgpp/1999/12/15/07:03:07
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> 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
- Raw text -