コード例 #1
0
        public void Reset()
        {
            // Read in bootstrap from FDLP (TODO: base this on LOAD switch, etc.)
            FDLP.Boot();

            _cpu.Reset();
        }
コード例 #2
0
        public System()
        {
            _mem = new PhysicalMemory(1024);
            _io  = new IOBus();
            _cpu = new Processor(_mem, _io);

            // Attach IO devices
            _fdlp = new FDLP(_mem, _cpu);
            _io.RegisterDevice(1, _fdlp);
        }
コード例 #3
0
        public RidgeSystem()
        {
            _scheduler = new Scheduler();

            _mem = new Memory.MemoryController(8192);
            _io  = new IOBus();
            _cpu = new Processor(_mem, _io);
            _mem.AttachCPU(_cpu);

            // Attach IO devices
            _fdlp = new FDLP(0x1, this);
            _io.RegisterDevice(0x1, _fdlp);

            _priamController = new PriamDiskController(0x2, this);
            _io.RegisterDevice(0x2, _priamController);

            //_display = new Display(0x4, this);
            //_io.RegisterDevice(0x4, _display);
            //_io.RegisterDevice(0x5, _display);
        }