public Debugger() { InitializeComponent(); OpenFileDialog dlg = new OpenFileDialog(); dlg.InitialDirectory = Directory.GetCurrentDirectory();// @"p:\csharp\emu6502\roms"; if (dlg.ShowDialog() != DialogResult.OK) { Application.Exit(); return; } nes = new Nes(dlg.FileName); UpdateScreen(); UpdateTitle(); Application.Idle += new EventHandler(Application_Idle); outputWindow = new PpuOutput(nes); outputWindow.Show(this); //outputWindow.Hide(); disassembly2.Nes = nes; disassembly2.Update(); disassembly2.SelectAddress(nes.Cpu.PC); sw.Start(); }