示例#1
0
        public Drive1541(int clockNum, int clockDen)
        {
            DriveRom = new Chip23128();
            _cpu     = new MOS6502X <CpuLink>(new CpuLink(this))
            {
                NMI = false
            };

            _ram = new int[0x800];
            Via0 = Chip6522.Create(ViaReadClock, ViaReadData, ViaReadAtn, 8);
            Via1 = Chip6522.Create(ReadVia1PrA, ReadVia1PrB);

            _cpuClockNum      = clockNum;
            _driveCpuClockNum = clockDen * 16000000;             // 16mhz
        }
示例#2
0
        public Drive1541(int clockNum, int clockDen)
        {
            DriveRom = new Chip23128();
            _cpu     = new MOS6502X
            {
                ReadMemory      = CpuRead,
                WriteMemory     = CpuWrite,
                DummyReadMemory = CpuRead,
                PeekMemory      = CpuPeek,
                NMI             = false
            };

            _ram = new int[0x800];
            Via0 = Chip6522.Create(ViaReadClock, ViaReadData, ViaReadAtn, 8);
            Via1 = Chip6522.Create(ReadVia1PrA, ReadVia1PrB);

            _cpuClockNum      = clockNum;
            _driveCpuClockNum = clockDen * 16000000;             // 16mhz
        }