Exemple #1
0
 public MMU(int size, BIOS bios, IOPort[] ioPorts, VideoCard videoCard)
 {
     _bios = bios;
     _ioPorts = ioPorts;
     _videoCard = videoCard;
     _ram = new byte[size];
     
     _tlb = new TLB();
 }
Exemple #2
0
        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));
        }