Mail Archives: djgpp/2000/04/03/07:35:52
On Sun, 2 Apr 2000, Trancelucid wrote:
> Eli Zaretskii wrote:
> >
> > On Mon, 27 Mar 2000, Jonathan Meunier wrote:
> >
> > > DJGPP doesn't allow reentrant interrupts..
> >
> > It doesn't? Could you explain why? I'm not aware of any such
> > limitation for hardware interrupt handlers in DJGPP.
>
> Err, not DJGPP itself, but rather handlers written in C.. DJGPP function
> _go32_dpmi_chain_protected_mode_interrupt_vector chains the original
> handler automatically. Is there a way to call the original handler only
> when I want it to?
Yes, you could call the original handler (saved during initialization)
instead of chaining.
> What I want to do is to handle the keyboard interrupt
> (faster for games), but when I want to (ie: with a flag), I'd like the
> DOS keyboard handler to handle it instead. Is this possible to do this
> in C, or do I have to do it all in assembly?
I see no problems doing this in C: you just need a function call.
> Read all of the above except for the sources, but it doesn't go in
> details.. So I'll go download the sources now :)
You can always ask questions here, if something in the sources is
unclear. That's what's great with DJGPP: you can talk to the
developers whenever you need to.
- Raw text -