delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/15/07:03:07

X-Apparently-From: <prashant?news AT yahoo DOT com>
Message-ID: <007c01bf46dd$b0113e20$24f838ca@home-computer>
From: "Prashant TR" <prashant_news AT yahoo DOT com>
To: <Do DOT Taddei AT agora DOT stm DOT it>
Cc: <djgpp AT delorie DOT com>, "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019