Use corrected LR35902 library to run test loop.

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon 2017-08-29 22:35:56 +01:00
parent ea033d3984
commit daab0484c3
2 changed files with 4 additions and 6 deletions

View File

@ -181,12 +181,9 @@ void Fuse::TestRunner::run() {
initialise();
auto allowedCycles = m_test.registerState.tstates;
try {
auto cycles = 0;
do {
cycles += m_cpu.step();
} while (allowedCycles > cycles);
m_cpu.run(allowedCycles);
check();
} catch (std::logic_error& error) {
} catch (std::logic_error& error) {
m_unimplemented = true;
std::cerr << "**** Error: " << error.what() << std::endl;
}

View File

@ -69,8 +69,9 @@ namespace EightBit {
return cycles;
}
protected:
int run(int limit);
protected:
virtual int execute(uint8_t opcode);
int step();