1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-01-25 19:55:57 +00:00

Fixed display microcode and display controller. Alto display now generated 100% by microcode tasks. A few small optimizations.

This commit is contained in:
Josh Dersch
2015-11-16 16:46:24 -08:00
parent 30ecfa6900
commit 03661fc90b
11 changed files with 138 additions and 126 deletions

View File

@@ -25,7 +25,7 @@ namespace Contralto
_keyboard = new Keyboard();
_diskController = new DiskController(this);
_displayController = new DisplayController(this);
_fakeDisplayController = new FakeDisplayController(this);
//_fakeDisplayController = new FakeDisplayController(this);
// Attach memory-mapped devices to the bus
_memBus.AddDevice(_mem);
@@ -36,7 +36,7 @@ namespace Contralto
_clockableDevices.Add(_memBus);
_clockableDevices.Add(_diskController);
_clockableDevices.Add(_displayController);
_clockableDevices.Add(_fakeDisplayController);
//_clockableDevices.Add(_fakeDisplayController);
_clockableDevices.Add(_cpu);
Reset();
@@ -62,13 +62,14 @@ namespace Contralto
public void AttachDisplay(Debugger d)
{
_displayController.AttachDisplay(d);
_fakeDisplayController.AttachDisplay(d);
// _fakeDisplayController.AttachDisplay(d);
}
public void SingleStep()
{
// Run every device that needs attention for a single clock cycle.
for (int i = 0; i < _clockableDevices.Count; i++)
int count = _clockableDevices.Count;
for (int i = 0; i < count; i++)
{
_clockableDevices[i].Clock();
}