Ejemplo n.º 1
0
 public LinkedMemoryDomains(IEmulator[] linkedCores, int numCores, LinkedDisassemblable linkedDisassemblable)
     : base(LinkMemoryDomains(linkedCores, numCores))
 {
     if (linkedDisassemblable is not null)
     {
         SystemBus = new LinkedSystemBus(linkedCores, numCores, linkedDisassemblable);
     }
 }
Ejemplo n.º 2
0
 public LinkedSystemBus(IEmulator[] linkedCores, int numCores, LinkedDisassemblable linkedDisassemblable)
 {
     _linkedSystemBuses    = new MemoryDomain[numCores];
     _linkedDisassemblable = linkedDisassemblable;
     for (int i = 0; i < numCores; i++)
     {
         _linkedSystemBuses[i] = linkedCores[i].AsMemoryDomains().SystemBus;
     }
     Name       = "System Bus";
     Size       = _linkedSystemBuses[0].Size;
     WordSize   = _linkedSystemBuses[0].WordSize;
     EndianType = _linkedSystemBuses[0].EndianType;
     Writable   = false;
 }