private void Reset(InterruptEventArgs args) { if (args.id == context.id) { currentlyRunningNode = null; } }
private void Reset(InterruptEventArgs args) { if (args.id == context.id) { currentRunningNodeIndex = -1; } }
/// <summary> /// Handles interrupts raised by the module and throws a new event if the interrupt was for this pin. /// </summary> private void OnParentInterrupt(object sender, InterruptEventArgs args) { if ((byte)args.PinId != Id) return; if (OnInterrupt == null) return; if (Interrupt == InterruptMode.RisingEdge && !args.PinState) return; if (Interrupt == InterruptMode.FallingEdge && args.PinState) return; OnInterrupt(args.PinId, args.PinState, args.Timestamp); }
private void OnInterrupt(InterruptEventArgs e) { EventHandler <InterruptEventArgs> handler = Interrupt; if (handler != null) { handler(this, e); } }
private void Cpu_Interrupted(object sender, InterruptEventArgs e) { if (e.Code == 0x21) { switch (e.State.RegisterFrame.ax) { case 0x4c00: system.Cpu.Ret(); break; case 0x2: Console.Write((char)e.State.RegisterFrame.dx); break; } } }
void provider_Interrupt(object sender, InterruptEventArgs e) { OnError("Camera provider interrupted: flags=" + e.Flags); }
private void Cpu_Interrupted(object sender, InterruptEventArgs e) { Interrupted?.Invoke(sender, e); }
public static void RaiseInterruptEvent(InterruptEventArgs args) { InterruptEvent?.Invoke(args); }