Example #1
0
 public void Start()
 {
     running = true;
     CreateStack();
     BeforeStart.Fire(this);
     Run();
 }
Example #2
0
 public void Start()
 {
     IsRunning = true;
     BeforeStart?.Fire(this);
     try
     {
         Run();
     }
     catch (Exception ex)
     {
         Debug.Print("Emulator exception when executing {0}. {1}\r\n{2}", CurrentInstruction, ex.Message, ex.StackTrace);
         ExceptionRaised?.Invoke(this, new EmulatorExceptionEventArgs(ex));
     }
 }