public void Start() { running = true; CreateStack(); BeforeStart.Fire(this); Run(); }
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)); } }