Add cycle count to the z80 fuse test runner.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2020-02-22 09:03:17 +00:00
parent 6285a397ab
commit 0b6a656a45

View File

@ -18,6 +18,7 @@ Fuse::TestRunner::TestRunner(const Test& test, const ExpectedTestResult& result)
m_cpu.ExecutedInstruction.connect([this](EightBit::Z80& cpu) {
m_totalCycles += cpu.cycles();
std::cout << "**** Cycle count: " << cpu.cycles() << std::endl;
});
ReadByte.connect([this](EightBit::EventArgs&) {