Exemplo n.º 1
0
 private void StartEmulation()
 {
     if (_romfile != String.Empty)
     {
         _chip8.LoadRomFromFile(_romfile);
         _chip8.Cpu.Running      = true;
         this.emuStateLabel.Text = "Emulation started";
     }
 }
Exemplo n.º 2
0
        private static void LaunchEmulator()
        {
            Chip8 chip8 = new Chip8();

            chip8.Reset();
            chip8.LoadRomFromFile(romPath);
            chip8.Start();

            MainWindow mainWindow = new MainWindow(chip8);

            mainWindow.SoundEnabled = soundEnabled;
            mainWindow.Run();
        }