示例#1
0
 internal MemoryModelLocation(MemoryModelLocationName name, Address address)
 {
     Name         = name;
     DisplayName  = name.ToString();
     StartAddress = address;
     EndAddress   = address;
 }
示例#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;
 }