private void Reset(InterruptEventArgs args)
 {
     if (args.id == context.id)
     {
         currentlyRunningNode = null;
     }
 }
Example #2
0
 private void Reset(InterruptEventArgs args)
 {
     if (args.id == context.id)
     {
         currentRunningNodeIndex = -1;
     }
 }
Example #3
0
 /// <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);
 }
Example #4
0
        private void OnInterrupt(InterruptEventArgs e)
        {
            EventHandler <InterruptEventArgs> handler = Interrupt;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #5
0
        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;
                }
            }
        }
Example #6
0
 void provider_Interrupt(object sender, InterruptEventArgs e)
 {
     OnError("Camera provider interrupted: flags=" + e.Flags);
 }
Example #7
0
 private void Cpu_Interrupted(object sender, InterruptEventArgs e)
 {
     Interrupted?.Invoke(sender, e);
 }
Example #8
0
 public static void RaiseInterruptEvent(InterruptEventArgs args)
 {
     InterruptEvent?.Invoke(args);
 }