EightBitNet/Test_M6502/TestHarness.cs
Adrian Conlon 9a06b1743f Port of EightBit library to .Net (unworking!)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-02-02 15:12:51 +00:00

24 lines
423 B
C#

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