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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user