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

Built basic debugger UI and execution framework; a few bugfixes. CPU now executes uCode up until the first STARTF (unimplemented).

This commit is contained in:
Josh Dersch
2015-09-01 17:06:57 -07:00
parent c4f8fe951f
commit 0ced1a2ef8
10 changed files with 1283 additions and 52 deletions

50
Contralto/AltoSystem.cs Normal file
View File

@@ -0,0 +1,50 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Contralto.CPU;
using Contralto.Memory;
namespace Contralto
{
/// <summary>
/// Encapsulates all Alto hardware; represents a complete Alto system.
/// Provides interfaces for controlling and debugging the system externally.
/// </summary>
public class AltoSystem
{
public AltoSystem()
{
_cpu = new AltoCPU(this);
_mem = new MemoryBus();
Reset();
}
public void Reset()
{
_cpu.Reset();
_mem.Reset();
}
public void SingleStep()
{
_mem.Clock();
_cpu.ExecuteNext();
}
public AltoCPU CPU
{
get { return _cpu; }
}
public MemoryBus MemoryBus
{
get { return _mem; }
}
private AltoCPU _cpu;
private MemoryBus _mem;
}
}