Mail Archives: djgpp/2000/06/18/01:34:04.1
On Sat, 17 Jun 2000, smile773 wrote:
> Thankyou Eli,
> you replyed : Why would you need to implement it?
>
> Because I still need all those troublesome 16 bit realmode utilities
> to operate.
>
> I am trying to find a good place to CATCH them so they
> will leave screen color and text up to the user.
The calls to Int 10h made by real-mode applications cannot be caught by
hooking a protected-mode interrupt, because the RM programs don't call
these interrupts in protected mode.
What you need is to hook Int 10h in *real* mode. One way of doing so is
to install a real-mode callback as a handler for Int 10h. The DJGPP FAQ
describes how to do that in section 18.8.
I should warn you up front that real-mode callbacks have some downsides;
for starters, they are non-reentrant.
- Raw text -