protected internal override void executeInterrupt() { if (Enabled) { for (int id = minIndex; id <= maxIndex; id++) { SubIntrHandler subIntrHandler = getSubIntrHandler(id); if (subIntrHandler != null && subIntrHandler.Enabled) { IntrManager.Instance.pushAllegrexInterruptHandler(subIntrHandler); } } } }
public virtual void addSubIntrHandler(int id, SubIntrHandler subIntrHandler) { if (id >= subInterrupts.Count) { subInterrupts.Capacity = id + 1; } if (id < minIndex) { minIndex = id; } if (id > maxIndex) { maxIndex = id; } subInterrupts[id] = subIntrHandler; }