예제 #1
0
        public Debugger(NES.NES nes)
        {
            breakPoints = new bool[0x10000];
            for (int i = 0; i < 0x10000; ++i)
            {
                breakPoints[i] = false;
            }

            nesEventOccured = new AutoResetEvent(false);

            this.nes           = nes;
            nes.LoopBeginning += Nes_LoopBeginning;
            nes.ErrorOccurred += Nes_ErrorOccurred;
        }
예제 #2
0
        static void Main(string[] args)
        {
            NesROM nesRom = null;

            using (var openFileDialog = new OpenFileDialog())
            {
                if (openFileDialog.ShowDialog() == DialogResult.OK)
                {
                    nesRom = new NesROM(openFileDialog.FileName);
                }
            }

            if (nesRom != null)
            {
                var nes = new NES.NES(nesRom);
                nes.MainLoop();
            }

            Console.ReadKey();
        }