1
0
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:
Josh Dersch
2016-09-28 15:46:54 -07:00
parent 7704bca35d
commit 39277a17a2
15 changed files with 159 additions and 138 deletions

View File

@@ -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);
}
}
}
}