1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-02-06 16:35:14 +00:00

Only add Memory device once

Moves setting of main memory device from inner loop to outside the loop.
This commit is contained in:
Seth Morabito
2016-08-19 14:12:08 -07:00
parent d058004c50
commit 18be144349

View File

@@ -62,14 +62,14 @@ namespace Contralto.Memory
else
{
_bus.Add(addr, dev);
if (dev is Memory)
{
_mainMemory = (Memory)dev;
}
}
}
}
if (dev is Memory)
{
_mainMemory = (Memory)dev;
}
}
public void Reset()