Esempio n. 1
0
        public MainForm()
        {
            InitializeComponent();

            Compiler.CompilerTrace.TraceFilter.Active = false;
            Compiler.CompilerTrace.TraceListener = this;

            Compiler.CompilerOptions.Architecture = GetArchitecture("x86");

            MaxHistory = 1000;

            assembliesView = new AssembliesView(this);
            registersView = new RegisterView(this);
            displayView = new DisplayView(this);
            controlView = new ControlView(this);
            callStackView = new CallStackView(this);
            stackFrameView = new StackFrameView(this);
            stackView = new StackView(this);
            flagView = new FlagView(this);
            statusView = new StatusView(this);
            historyView = new HistoryView(this);
            symbolView = new SymbolView(this);
            watchView = new WatchView(this);
            breakPointView = new BreakPointView(this);
            outputView = new OutputView(this);
            scriptView = new ScriptView(this);

            Thread.CurrentThread.Priority = ThreadPriority.Highest;
            worker = new Thread(ExecuteThread);
            worker.IsBackground = false;
            worker.Name = "SimCPU";
            worker.Start();
        }
Esempio n. 2
0
        public MainForm()
        {
            InitializeComponent();
            Filter.MethodMatch = MatchType.None;
            Filter.Method = string.Empty;
            Filter.StageMatch = MatchType.Any;
            Filter.TypeMatch = MatchType.Any;
            Filter.ExcludeInternalMethods = false;

            InternalTrace.TraceFilter = Filter;
            InternalTrace.CompilerEventListener = this;

            MaxHistory = 1000;

            assembliesView = new AssembliesView(this);
            registersView = new RegisterView(this);
            displayView = new DisplayView(this);
            controlView = new ControlView(this);
            callStackView = new CallStackView(this);
            stackFrameView = new StackFrameView(this);
            stackView = new StackView(this);
            flagView = new FlagView(this);
            statusView = new StatusView(this);
            historyView = new HistoryView(this);
            symbolView = new SymbolView(this);
            watchView = new WatchView(this);
            breakPointView = new BreakPointView(this);
            outputView = new OutputView(this);
            scriptView = new ScriptView(this);

            worker = new Thread(ExecuteThread);
            worker.Name = "SimCPU";
            worker.Start();
        }