EightBitNet/M6502/M6502.Test/TestHarness.cs
Adrian Conlon d6d8c4e13c Move the EightBit (.Net) test projects to better locations.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-06 22:58:26 +00:00

30 lines
608 B
C#

// <copyright file="TestHarness.cs" company="Adrian Conlon">
// Copyright (c) Adrian Conlon. All rights reserved.
// </copyright>
namespace M6502.Test
{
internal class TestHarness
{
private Board board;
public TestHarness(Configuration configuration)
{
this.board = new Board(configuration);
}
public void Run()
{
this.board.Initialize();
this.board.RaisePOWER();
var cpu = this.board.CPU;
while (cpu.Powered)
{
cpu.Step();
}
}
}
}