Mail Archives: djgpp/1997/06/10/20:37:05
Goretec3 (goretec3 AT aol DOT com) wrote:
> I was looing through the Allegro code to maye learn something and, as I
> looked through the mouse section, I saw a funciotn that installs a
> callback. What is a callback?
A callback (and I am, perhaps dangerously, assuming you refer to RMCBs
here) is a sort of interrupt handler you install under a DPMI host that
will catch real mode interrupts (as opposed to only protected mode
interrupts) and call the corresponding function back in protected mode.
(For example, say I wanted to make a TSR, I'd need to hook INT 0x28 (DOS
Idle) to do this. So, I'd allocate an RMCB (Real Mode CallBack) that
would catch INT 0x28 signals in real mode, then call my protected mode
handler.)
--
Jason Daniels -- bd733 AT rgfn DOT epcc DOT edu
---> BELIEVE THE LIE <---
Linux: The choice of a GNU generation.
Winblows 95: The world's best-selling computer virus.
- Raw text -