public DebuggerWindow(CHIP_8 p)
        {
            InitializeComponent();
            Loaded  += Debugger_Loaded;
            Closing += Debugger_Closing;

            Console.WriteLine("Opening Debugger");

            CPU = p;
            SetupRegisterEntries();
            PopulateRegisterEntries();

            FetcherLoop = new DispatcherTimer()
            {
                Interval = FetcherDelay
            };
            FetcherLoop.Tick += FetcherLoop_Tick;
            FetcherLoop.Start();

            MemoryLoop = new DispatcherTimer()
            {
                Interval = MemoryDelay
            };
            MemoryLoop.Tick += MemoryLoop_Tick;
            MemoryLoop.Start();
        }
Beispiel #2
0
        //Initializations

        private void FreshChip()
        {
            CPUCore = new CHIP_8(this);
            InitializeCPUClock();

            if (SelectedRenderer == "DotRenderer")
            {
                Console.WriteLine("Starting with DotRenderer");
                InitializeDotRenderer();
                Console.WriteLine($"Pixel buffer size: {DOTRenderer.check}");
            }
            else if (SelectedRenderer == "OpenGL")
            {
                Console.WriteLine("Starting with OpenGL");
            }

            StateManager = new SaveStateManager(CPUCore);
            ReadConfiguration();
        }
Beispiel #3
0
 public SaveStateManager(CHIP_8 chip)
 {
     CPUCore = chip;
     Directory.CreateDirectory(statefolder);
 }