mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-12-27 13:29:17 +00:00
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|