EightBitNet/M6502/M6502.Test/TestHarness.cs

30 lines
608 B
C#
Raw Normal View History

// <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();
}
}
}
}