예제 #1
0
        public CPU()
        {
            reg    = new CPURegisters();
            memory = new Memory(this);
            gpu    = new GPU(this);
            mtx    = new Mutex();
            GbKeys = new GBKeys(this);
            timer  = new GBTimer(this);
            Reset();
            LastUpdate             = DateTime.Now;
            cpuThread              = new Thread(() => Update());
            cpuThread.IsBackground = true;
            running         = false;
            paused          = true;
            step            = false;
            lastCycleTimeMs = 0;
            disasm          = new Disassembler();

            Console.WriteLine(disasm.Disasm(0x0000, memory._bios));
        }