1
0
mirror of https://github.com/livingcomputermuseum/ContrAlto.git synced 2026-01-26 04:01:07 +00:00

Fixed bug in carry flag on SUB operations; SUBLZ X,X now works correctly. Alto now appears to boot successfully. Skeleton of Display hardware added.

This commit is contained in:
Josh Dersch
2015-11-09 17:36:26 -08:00
parent e9a13529c1
commit e1c90dbe01
13 changed files with 182 additions and 13 deletions

View File

@@ -7,6 +7,7 @@ using System.Threading.Tasks;
using Contralto.CPU;
using Contralto.IO;
using Contralto.Memory;
using Contralto.Display;
namespace Contralto
{
@@ -23,6 +24,7 @@ namespace Contralto
_mem = new Memory.Memory();
_keyboard = new Keyboard();
_diskController = new DiskController(this);
_displayController = new DisplayController(this);
// Attach memory-mapped devices to the bus
_memBus.AddDevice(_mem);
@@ -32,7 +34,8 @@ namespace Contralto
_clockableDevices = new List<IClockable>();
_clockableDevices.Add(_memBus);
_clockableDevices.Add(_diskController);
_clockableDevices.Add(_cpu);
_clockableDevices.Add(_displayController);
_clockableDevices.Add(_cpu);
Reset();
}
@@ -45,6 +48,7 @@ namespace Contralto
ALU.Reset();
Shifter.Reset();
_diskController.Reset();
_displayController.Reset();
}
public void SingleStep()
@@ -85,6 +89,7 @@ namespace Contralto
private Contralto.Memory.Memory _mem;
private Keyboard _keyboard;
private DiskController _diskController;
private DisplayController _displayController;
private List<IClockable> _clockableDevices;
}