public void CheckIRQs()
{
// Trigger pending interrupts
if (ta_irq_next_cycle)
{
#if TIMERS
ta_interrupts++;
#endif
ta_irq_next_cycle = false;
TriggerInterrupt(1);
}
if (tb_irq_next_cycle)
{
#if TIMERS
tb_interrupts++;
#endif
tb_irq_next_cycle = false;
TriggerInterrupt(2);
}
}