Added Hex Conversions to allow for loading programs into memory from Hex Files.
This commit is contained in:
@@ -113,7 +113,7 @@ namespace CPUSimulation
|
||||
{
|
||||
if (address < 0 || address >= _memoryBankSize)
|
||||
{
|
||||
throw new ArgumentOutOfRangeException(nameof(address), $"Address must be between 0 and {_memoryBankSize - 1}.");
|
||||
throw new ArgumentOutOfRangeException(nameof(address), $"Received {address}. Address must be between 0 and {_memoryBankSize - 1}.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user