Listing 6: Capturing an Interrupt

void *pInterruptF1HandlerObject = 0; /* The constructor of the class
  derived from InterruptHandlerClass that will handle interrupt
  0xF1 must assign "this" to pInterruptF1HandlerObject. See
  example below. */

extern void _InterruptHandlerClass_FirstHandle(/* struct InterruptHandler*  */);

__mod2__ void InterruptF1Func(void) /* __mod2__ makes it an interrupt
                                       service routine */
{
  _InterruptHandlerClass_FirstHandle(pInterruptF1HandlerObject);
}