示例#1
0
        private void HardReset()
        {
            Cpu.Reset();
            _ram = new byte[0x8000];
            for (int i = 0; i < 0x8000; i++)
            {
                _ram[i] = 0xFF;
            }
            Cpu.RegisterPC = startPC;

            Cpu.IFF1          = false;
            Cpu.IFF2          = false;
            Cpu.InterruptMode = 2;

            _maskOn          = 1;
            _romPageHighBit  = 0;
            _romPageLow3Bits = 0;
            _keyboardMask    = 0;

            _displayMode = 0;
            _displayMove = 0;
            _displayX    = _displayY = 0;
        }
示例#2
0
        public void HardReset()
        {
            cpu.Reset();
            ram = new byte[0x8000];
            for (int i = 0; i < 0x8000; i++)
            {
                ram[i] = 0xFF;
            }
            cpu.RegisterPC = startPC;

            cpu.IFF1          = false;
            cpu.IFF2          = false;
            cpu.InterruptMode = 2;

            maskOn          = 1;
            romPageHighBit  = 0;
            romPageLow3Bits = 0;
            keyboardMask    = 0;

            disp_mode = 0;
            disp_move = 0;
            disp_x    = disp_y = 0;
        }
示例#3
0
 private void HardReset()
 {
     PSG.Reset();
     _cpu.Reset();
 }