1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-03-10 20:34:24 +00:00

Merge pull request #1 from sethm/master

Minor code cleanup
This commit is contained in:
Living Computer Museum
2016-08-19 14:37:48 -07:00
committed by GitHub
2 changed files with 7 additions and 13 deletions

View File

@@ -189,9 +189,6 @@ namespace Contralto.CPU
break;
case MicrocodeBank.RAM0:
_microcodeBank[(int)task] = (nextAddress & 0x80) == 0 ? MicrocodeBank.ROM0 : MicrocodeBank.RAM2;
break;
case MicrocodeBank.RAM1:
_microcodeBank[(int)task] = (nextAddress & 0x80) == 0 ? MicrocodeBank.ROM0 : MicrocodeBank.RAM2;
break;
@@ -210,15 +207,12 @@ namespace Contralto.CPU
break;
case MicrocodeBank.RAM0:
_microcodeBank[(int)task] = (nextAddress & 0x80) == 0 ? MicrocodeBank.RAM1 : MicrocodeBank.RAM1;
_microcodeBank[(int)task] = MicrocodeBank.RAM1;
break;
case MicrocodeBank.RAM1:
_microcodeBank[(int)task] = (nextAddress & 0x80) == 0 ? MicrocodeBank.RAM0 : MicrocodeBank.RAM0;
break;
case MicrocodeBank.RAM2:
_microcodeBank[(int)task] = (nextAddress & 0x80) == 0 ? MicrocodeBank.RAM0 : MicrocodeBank.RAM0;
_microcodeBank[(int)task] = MicrocodeBank.RAM0;
break;
}
}

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()