示例#1
0
文件: MMU.cs 项目: claassen/RIVM
 public MMU(int size, BIOS bios, IOPort[] ioPorts, VideoCard videoCard)
 {
     _bios = bios;
     _ioPorts = ioPorts;
     _videoCard = videoCard;
     _ram = new byte[size];
     
     _tlb = new TLB();
 }
示例#2
0
文件: VM.cs 项目: claassen/RIVM
        public VM(int memorySize, string biosExe, string diskFile, Graphics graphics)
        {
            _video = new VideoCard(graphics);

            cpu = new CPU(new MMU(memorySize, new BIOS(biosExe), CreateIODevices(diskFile), _video));
        }