Exemplo n.º 1
0
 internal MemoryModelLocation(MemoryModelLocationName name, Address address)
 {
     Name         = name;
     DisplayName  = name.ToString();
     StartAddress = address;
     EndAddress   = address;
 }
Exemplo n.º 2
0
 internal MemoryModelLocation(MemoryModelLocationName name, Address startAddress, Address endAddress)
 {
     if (startAddress > endAddress)
     {
         throw new SystemException($"Negative range: {startAddress} - {endAddress}");
     }
     Name         = name;
     DisplayName  = name.ToString();
     StartAddress = startAddress;
     EndAddress   = endAddress;
 }
Exemplo n.º 3
0
 public MemoryModelLocation GetModelLocation(MemoryModelLocationName name) =>
 Locations.GetLocation(name);
Exemplo n.º 4
0
 public MemoryModelLocation GetLocation(MemoryModelLocationName name)
 => this.FirstOrDefault(x => name == x.Name);