mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-08-01 03:28:59 +00:00
d6d8c4e13c
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
30 lines
608 B
C#
30 lines
608 B
C#
// <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();
|
|
}
|
|
}
|
|
}
|
|
}
|