EightBitNet/Test_M6502/TestHarness.cs

24 lines
423 B
C#
Raw Normal View History

namespace Test
{
internal class TestHarness
{
private Board board;
public TestHarness(Configuration configuration)
{
board = new Board(configuration);
}
public void Run()
{
board.Initialize();
board.RaisePOWER();
var cpu = board.CPU;
while (cpu.Powered)
cpu.Step();
}
}
}