mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-12-26 22:31:01 +00:00
9a06b1743f
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
24 lines
423 B
C#
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();
|
|
}
|
|
}
|
|
}
|