mirror of
https://github.com/livingcomputermuseum/ContrAlto.git
synced 2026-05-02 06:16:34 +00:00
Small performance tweaks, minor cleanup, minor improvement to microcode disassembly. Fixes to microcode annotation (thanks, Ken!).
This commit is contained in:
@@ -428,14 +428,14 @@ namespace Contralto.Memory
|
||||
{
|
||||
// Memory-mapped device access:
|
||||
// Look up address in hash; if populated ask the device
|
||||
// to return a value otherwise throw.
|
||||
// to return a value otherwise return 0.
|
||||
IMemoryMappedDevice memoryMappedDevice = null;
|
||||
if (_bus.TryGetValue(address, out memoryMappedDevice))
|
||||
{
|
||||
return memoryMappedDevice.Read(address, task, extendedMemoryReference);
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -458,12 +458,12 @@ namespace Contralto.Memory
|
||||
{
|
||||
// Memory-mapped device access:
|
||||
// Look up address in hash; if populated ask the device
|
||||
// to store a value otherwise throw.
|
||||
// to store a value otherwise do nothing.
|
||||
IMemoryMappedDevice memoryMappedDevice = null;
|
||||
if (_bus.TryGetValue(address, out memoryMappedDevice))
|
||||
{
|
||||
{
|
||||
memoryMappedDevice.Load(address, data, task, extendedMemoryReference);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user